You are here

public function ContextAwarePluginDefinitionInterface::hasContextDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition()
  2. 9 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\Definition

Code

public function hasContextDefinition($name);