ValidKeysConstraint::$allowedKeys

Same name in other branches
  1. 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\ValidKeysConstraint::allowedKeys

Keys which are allowed in the validated array, or `<infer>` to auto-detect.

Type: array|string

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php, line 64

Class

ValidKeysConstraint
Checks that all the keys of a mapping are valid and required keys present.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public array|string $allowedKeys;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.