Problem/Motivation
Saving the Entity Submenu Block results in:
TypeError: Drupal\Core\Form\FormStateDecoratorBase::setError(): Argument #1 ($element) must be of type array, null given, called in /web/core/modules/system/src/Plugin/Block/SystemMenuBlock.php on line 163 in Drupal\Core\Form\FormStateDecoratorBase->setError() (line 647 of core/lib/Drupal/Core/Form/FormStateDecoratorBase.php).
Also I see
Warning: Undefined array key "level" in Drupal\system\Plugin\Block\SystemMenuBlock->blockValidate() (Zeile 162 in /web/core/modules/system/src/Plugin/Block/SystemMenuBlock.php). =>
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork entity_submenu_block-3610607
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
grevil commentedFixed, please review!
Comment #5
anybodyThanks, RTBC as there are currently no other helpful validations:
Hopefully this won't conflict with any submit values. I'm not even sure if it makes sense to extend SystemMenuBlock. I'll add a follow-up.
Comment #6
anybodyHere's the follow-up: #3610644: Check if extending SystemMenuBlock is helpful
Comment #7
anybody