Problem/Motivation
The value for render element in form_options_attributes_theme is wrong and leads to errors during processing in specific conditions. Instead of 'elements' it should use the singular version 'element' just like the base theme, see select in https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Theme%21T...
'select' => [
'render element' => 'element',
'initial preprocess' => FormPreprocess::class . ':preprocessSelect',
],
Steps to reproduce
Not sure for the steps, as my setup is very custom.
Proposed resolution
Change
'form_options_attributes__select__options_attributes' => [
'render element' => 'elements',
'base hook' => 'select',
],
to
'form_options_attributes__select__options_attributes' => [
'render element' => 'element',
'base hook' => 'select',
],
Remaining tasks
Add steps to reproduce.
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #3
berliner commentedOpened MR with a change that solves the issue for me.
Comment #4
berliner commentedComment #7
zengenuity commentedMerged. Thanks!
Comment #9
zengenuity commentedThis is now part of the 2.1.1 release.
Comment #10
zengenuity commentedThis is now part of the 2.1.1 release.