8.5.x ContextAwarePluginInterface.php ContextAwarePluginInterface::validateContexts()
8.0.x ContextAwarePluginInterface.php ContextAwarePluginInterface::validateContexts()
8.1.x ContextAwarePluginInterface.php ContextAwarePluginInterface::validateContexts()
8.2.x ContextAwarePluginInterface.php ContextAwarePluginInterface::validateContexts()
8.3.x ContextAwarePluginInterface.php ContextAwarePluginInterface::validateContexts()
8.4.x ContextAwarePluginInterface.php ContextAwarePluginInterface::validateContexts()
8.6.x ContextAwarePluginInterface.php 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();