function ContextAwarePluginDefinitionTrait::hasContextDefinition
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionTrait.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionTrait::hasContextDefinition()
- 10 core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionTrait.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionTrait::hasContextDefinition()
- 11.x core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionTrait.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionTrait::hasContextDefinition()
Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition().
1 call to ContextAwarePluginDefinitionTrait::hasContextDefinition()
- ContextAwarePluginDefinitionTrait::getContextDefinition in core/
lib/ Drupal/ Component/ Plugin/ Definition/ ContextAwarePluginDefinitionTrait.php - Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::getContextDefinition().
File
-
core/
lib/ Drupal/ Component/ Plugin/ Definition/ ContextAwarePluginDefinitionTrait.php, line 23
Class
- ContextAwarePluginDefinitionTrait
- Provides a trait for context-aware object-based plugin definitions.
Namespace
Drupal\Component\Plugin\DefinitionCode
public function hasContextDefinition($name) {
return array_key_exists($name, $this->contextDefinitions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.