Extend field validation to also allow for arrays

Issue information

From user: jurgenhaas

Contribution record

Fork management

Problem/Motivation

When validating field values in \Drupal\modeler_api\Component::validate, 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.

Proposed resolution

Implode arrays for the duration of validation and replace the array value back at the end.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information