Problem/Motivation

(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.

Steps to reproduce

Proposed resolution

Employ the subform state mechanism to pass the plugin form and a SubFormState to the plugins.

Remaining tasks

User interface changes

-

Introduced terminology

-

API changes

Data model changes

Release notes snippet

Comments

tstoeckler created an issue. See original summary.

tstoeckler’s picture