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.

Comments

jurgenhaas created an issue. See original summary.

  • jurgenhaas committed d27b41c6 on 1.1.x
    [#3546719] task: Extend field validation to also allow for arrays
    
    By:...

  • jurgenhaas committed a4c6d813 on 1.0.x
    [#3546719] task: Extend field validation to also allow for arrays
    
    By:...
jurgenhaas’s picture

Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.