You are here

public function ContextAwarePluginDefinitionTrait::hasContextDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 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\Definition

Code

public function hasContextDefinition($name) {
  return array_key_exists($name, $this->contextDefinitions);
}