DataType::$constraints
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Annotation/DataType.php \Drupal\Core\TypedData\Annotation\DataType::constraints
- 8.9.x core/lib/Drupal/Core/TypedData/Annotation/DataType.php \Drupal\Core\TypedData\Annotation\DataType::constraints
- 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\AnnotationCode
public $constraints;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.