You are here

public function ContextDefinitionInterface::getConstraint in Plug 7

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\Context

Code

public function getConstraint($constraint_name);