public function ContextDefinitionInterface::getConstraint in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::getConstraint()
Gets a validation constraint.
Parameters
string $constraint_name: The name of the constraint, i.e. its plugin id.
Return value
array A validation constraint definition which can be used for instantiating a \Symfony\Component\Validator\Constraint object.
File
- lib/
Drupal/ Component/ Plugin/ Context/ ContextDefinitionInterface.php, line 177 - Contains \Drupal\Component\Plugin\Context\ContextDefinitionInterface.
Class
- ContextDefinitionInterface
- Interface for context definitions.
Namespace
Drupal\Component\Plugin\ContextCode
public function getConstraint($constraint_name);