function TypedDataInterface::getConstraints
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getConstraints()
- 10 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getConstraints()
- 11.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getConstraints()
Gets a list of validation constraints.
Return value
array Array of constraints, each being an instance of \Symfony\Component\Validator\Constraint.
1 method overrides TypedDataInterface::getConstraints()
- TypedData::getConstraints in core/
lib/ Drupal/ Core/ TypedData/ TypedData.php - Gets a list of validation constraints.
File
-
core/
lib/ Drupal/ Core/ TypedData/ TypedDataInterface.php, line 83
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function getConstraints();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.