eca_form: Action "Entity form: build entity" may cause a fatal when used on form validation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3310110. -->
Reported by: [mxh](https://www.drupal.org/user/1124384)
Related to !232
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Action "Entity form: build entity" may cause a fatal when used on form validation. The following error may then occur:</p>
<pre>The website encountered an unexpected error. Please try again later.<br>TypeError: Argument 1 passed to Drupal\Core\Field\WidgetBase::massageFormValues() must be of the type array, string given, called in .../web/core/lib/Drupal/Core/Field/WidgetBase.php on line 400 in Drupal\Core\Field\WidgetBase->massageFormValues() (line 547 of core/lib/Drupal/Core/Field/WidgetBase.php).</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Fix the bug.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue