You are here

public function Context::getConstraints in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::getConstraints()
  2. 8 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::getConstraints()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::getConstraints()

Gets a list of validation constraints.

Return value

array Array of constraints, each being an instance of \Symfony\Component\Validator\Constraint.

Overrides Context::getConstraints

File

core/lib/Drupal/Core/Plugin/Context/Context.php, line 113
Contains \Drupal\Core\Plugin\Context\Context.

Class

Context
A Drupal specific context wrapper class.

Namespace

Drupal\Core\Plugin\Context

Code

public function getConstraints() {
  return $this->contextDefinition
    ->getConstraints();
}