public function ContextDefinitionInterface::getConstraints in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 138 - Contains \Drupal\Component\Plugin\Context\ContextDefinitionInterface.
Class
- ContextDefinitionInterface
- Interface for context definitions.
Namespace
Drupal\Component\Plugin\ContextCode
public function getConstraints();