Extend field validation to also allow for arrays
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3546719. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When validating field values in <code>\Drupal\modeler_api\Component::validate</code>, the interface expects either a string or NULL. But there could also be arrays in some rare circumstances, like e.g. in the "Entity Diff" action plugin from ECA.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Implode arrays for the duration of validation and replace the array value back at the end.</p>
issue