public function ContextInterface::getConstraints in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Plugin/Context/ContextInterface.php \Drupal\Component\Plugin\Context\ContextInterface::getConstraints()
- 10 core/lib/Drupal/Component/Plugin/Context/ContextInterface.php \Drupal\Component\Plugin\Context\ContextInterface::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 ContextInterface::getConstraints()
- Context::getConstraints in core/
lib/ Drupal/ Component/ Plugin/ Context/ Context.php - Gets a list of validation constraints.
File
- core/
lib/ Drupal/ Component/ Plugin/ Context/ ContextInterface.php, line 48
Class
- ContextInterface
- Provides data and definitions for plugins during runtime and administration.
Namespace
Drupal\Component\Plugin\ContextCode
public function getConstraints();