public function ContextInterface::getConstraints in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 46 - Contains \Drupal\Component\Plugin\Context\ContextInterface.
Class
- ContextInterface
- A generic context interface for wrapping data a plugin needs to operate.
Namespace
Drupal\Component\Plugin\ContextCode
public function getConstraints();