function ContextAwarePluginDefinitionInterface::hasContextDefinition
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition()
- 10 core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition()
- 11.x core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition()
Checks if the plugin defines a particular context.
Parameters
string $name: The context name.
Return value
bool TRUE if the plugin defines the given context, otherwise FALSE.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Definition/ ContextAwarePluginDefinitionInterface.php, line 23
Class
- ContextAwarePluginDefinitionInterface
- Provides an interface for plugin definitions which use contexts.
Namespace
Drupal\Component\Plugin\DefinitionCode
public function hasContextDefinition($name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.