ValidKeysConstraint::$indexedArrayMessage
Same name in other branches
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\ValidKeysConstraint::indexedArrayMessage
The error message if the array being validated is a list.
Type: string
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ ValidKeysConstraint.php, line 57
Class
- ValidKeysConstraint
- Checks that all the keys of a mapping are valid and required keys present.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public string $indexedArrayMessage = 'Numerically indexed arrays are not allowed.';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.