Active
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2026 at 12:08 UTC
Updated:
31 Jan 2026 at 12:09 UTC
Jump to comment: Most recent
(Marking this as bug because there is no way to correctly implement SelectionInterface::validateConfigurationForm() due to this.)
Entity reference handlers can implement validation for their configuration via SelectionInterface::validateConfigurationForm(). However, when this is called by EntityReferenceItem::fieldSettingsFormValidate() the subform mechanism is not employed so that selection handlers get the entire form and form state without any way to know which part of the form they are responsible for.
Employ the subform state mechanism to pass the plugin form and a SubFormState to the plugins.
-
-
Comments
Comment #2
tstoeckler