function ContextDefinitionInterface::getConstraints
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::getConstraints()
- 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::getConstraints()
- 11.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::getConstraints()
Gets an array of validation constraints.
Return value
array An array of validation constraint definitions, keyed by constraint name. Each constraint definition can be used for instantiating \Symfony\Component\Validator\Constraint objects.
1 method overrides ContextDefinitionInterface::getConstraints()
- ContextDefinition::getConstraints in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php - Gets an array of validation constraints.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Context/ ContextDefinitionInterface.php, line 135
Class
- ContextDefinitionInterface
- Interface used to define definition objects found in ContextInterface.
Namespace
Drupal\Component\Plugin\ContextCode
public function getConstraints();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.