- Issue created by @westdylank
I debugged this further and added the following code and printed out the value that was triggering this error in the /web/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php:
if (!$valid) { // @todo Provide a good violation message for each problem. $msg = $constraint->message . " ||| " . print_r($value, TRUE); $this->context->addViolation($msg, [ '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value), ]); }This is the value I get along with the error message. In the config form, I had used 100, 100, 100 for the breakpoints and % as the value type:
Array ( [pwbi.sm] => Array ( [height] => 100 ) [pwbi.md] => Array ( [height] => 100 ) [pwbi.lg] => Array ( [height] => 100 ) )