You are here

public function ContextInterface::validate in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/Context/ContextInterface.php \Drupal\Component\Plugin\Context\ContextInterface::validate()

Validates the set context value.

Return value

\Symfony\Component\Validator\ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded.

1 method overrides ContextInterface::validate()
Context::validate in lib/Drupal/Component/Plugin/Context/Context.php
Validates the set context value.

File

lib/Drupal/Component/Plugin/Context/ContextInterface.php, line 55
Contains \Drupal\Component\Plugin\Context\ContextInterface.

Class

ContextInterface
A generic context interface for wrapping data a plugin needs to operate.

Namespace

Drupal\Component\Plugin\Context

Code

public function validate();