Code snippet has a typo.

Created on 6 August 2024, 4 months ago
Updated 20 August 2024, 3 months ago

Problem/Motivation

The provided code snippet has a typo that prevents it from working as is.

Steps to reproduce

Cut and paste into the MODULE.module file

Proposed resolution

change:
$data['node__' . $field_name][$field_name . '_target_id]['filter']['id'] = 'entity_reference';
to:
$data['node__' . $field_name][$field_name . '_target_id']['filter']['id'] = 'entity_reference';

I know this is nitpicky, but it sucks to copy/paste code that won't "just work"

🐛 Bug report
Status

Fixed

Version

1.0

Component

Documentation

Created by

🇨🇦Canada jodavidson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024