function ContextInterface::validate
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Context/ContextInterface.php \Drupal\Component\Plugin\Context\ContextInterface::validate()
- 8.9.x core/lib/Drupal/Component/Plugin/Context/ContextInterface.php \Drupal\Component\Plugin\Context\ContextInterface::validate()
- 10 core/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 core/
lib/ Drupal/ Component/ Plugin/ Context/ Context.php - Validates the set context value.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Context/ ContextInterface.php, line 57
Class
- ContextInterface
- Provides data and definitions for plugins during runtime and administration.
Namespace
Drupal\Component\Plugin\ContextCode
public function validate();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.