function Context::hasContextValue
Same name in this branch
- 10 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::hasContextValue()
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::hasContextValue()
- 9 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::hasContextValue()
- 8.9.x core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::hasContextValue()
- 8.9.x core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::hasContextValue()
- 11.x core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::hasContextValue()
- 11.x core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::hasContextValue()
Overrides ContextInterface::hasContextValue
1 method overrides Context::hasContextValue()
- Context::hasContextValue in core/
lib/ Drupal/ Core/ Plugin/ Context/ Context.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ Context/ Context.php, line 64
Class
- Context
- A generic context class for wrapping data a plugin needs to operate.
Namespace
Drupal\Component\Plugin\ContextCode
public function hasContextValue() {
return $this->contextValue !== NULL || $this->getContextDefinition()
->getDefaultValue() !== NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.