function ContextAwarePluginInterface::validateContexts

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::validateContexts()
  2. 10 core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::validateContexts()
  3. 11.x core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\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 core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Validates the set values for the defined contexts.

File

core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 121

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function validateContexts();

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