Warning on bundle entity forms: undefined array key "name"

Created on 10 April 2025, about 1 month ago

Problem/Motivation

We see this error on entity bundle add / edit forms: Warning: Undefined array key "name" in Drupal\rdf_sync\Form\Alter\BundleEntityFormAlter->Drupal\rdf_sync\Form\Alter\{closure}() (line 157 of web/modules/contrib/rdf_sync/src/Form/Alter/BundleEntityFormAlter.php).

Steps to reproduce

  1. Install Drupal (minimal), enable node and rdf_sync.
  2. Define at least one custom URI generator plugin.
  3. Visit admin/structure/types/add

Proposed resolution

Both the annotation and the attribute are using the 'label' key for the human label of the URI generator plugin, so just change the option key from 'name' to 'label'.

Remaining tasks

  1. Test
  2. Fix

User interface changes

URI generator plugins can be selectable on UI without inspecting HTML.

API changes

Nothing.

Data model changes

Nothing.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇭🇺Hungary huzooka Hungary 🇭🇺🇪🇺

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024