public function ContextAwarePluginInterface::validateContexts

Validates the set values for the defined contexts.

Return value

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

1 method overrides ContextAwarePluginInterface::validateContexts()
ContextAwarePluginBase::validateContexts in drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Implements \Drupal\Component\Plugin\ContextAwarePluginInterface::valdidateContexts().

File

drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 114
Contains \Drupal\Component\Plugin\ContextAwarePluginInterface.

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function validateContexts();