DataType::$constraints

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/Annotation/DataType.php \Drupal\Core\TypedData\Annotation\DataType::constraints
  2. 8.9.x core/lib/Drupal/Core/TypedData/Annotation/DataType.php \Drupal\Core\TypedData\Annotation\DataType::constraints
  3. 10 core/lib/Drupal/Core/TypedData/Annotation/DataType.php \Drupal\Core\TypedData\Annotation\DataType::constraints

An array of validation constraints for this type.

Type: array

See also

\Drupal\Core\TypedData\TypedDataManager::getConstraints().

File

core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 95

Class

DataType
Defines a data type annotation object.

Namespace

Drupal\Core\TypedData\Annotation

Code

public $constraints;

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