You are here

public function PluginContextDefinitionInterface::hasContextDefinition in Plugin 8.2

Checks if a specific context definition exists.

Parameters

string $name: The name of the context in the plugin definition.

Return value

bool Whether the context definition exists.

1 method overrides PluginContextDefinitionInterface::hasContextDefinition()
ArrayPluginDefinitionDecorator::hasContextDefinition in src/PluginDefinition/ArrayPluginDefinitionDecorator.php
Checks if a specific context definition exists.

File

src/PluginDefinition/PluginContextDefinitionInterface.php, line 71

Class

PluginContextDefinitionInterface
Defines a plugin definition that includes contexts.

Namespace

Drupal\plugin\PluginDefinition

Code

public function hasContextDefinition($name);