You are here

public function ContextInterface::getConstraints in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Context/ContextInterface.php \Drupal\Component\Plugin\Context\ContextInterface::getConstraints()
  2. 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\Context

Code

public function getConstraints();