Problem/Motivation
When editing a form without webform_uid, if the YAML input contains an invalid render array, it triggers an exception:
InvalidArgumentException:
"foo" is an invalid render array key. Value should be an array but got a object.
at core/lib/Drupal/Core/Render/Element.php:97
at Drupal\Core\Render\Element::children()
(modules/contrib/webform/src/WebformEntityElementsForm.php:234)
at Drupal\webform\WebformEntityElementsForm->addWebformTypePrefixRecursive()
(modules/contrib/webform/src/WebformEntityElementsForm.php:216)
Steps to reproduce
Don't enable webform_ui.
Browse to /admin/structure/webform/manage/[webform_id].
Save this YAML:
foo: bar
Proposed resolution
This error should be handled more gracefully.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork webform-3547518
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 #2
prudloff commentedMy bad, this is not related to to custom tags, it happens with any invalid render array.
Comment #3
prudloff commentedComment #6
jrockowitz commentedComment #7
jrockowitz commentedThis is a fairly simple change
Comment #8
jrockowitz commented