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