public function ContextAwarePluginDefinitionTrait::hasContextDefinition in Drupal 8
Same name and namespace in other branches
- 9 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);
}