function ContextInterface::getConstraints

Same name 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()
  3. 11.x 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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.