public function ContextAwarePluginInterface::getContextDefinition

Gets a specific context definition of the plugin.

Parameters

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

Return value

array The definition against which the context value must validate.

Throws

\Drupal\Component\Plugin\Exception\PluginException If the requested context is not defined.

1 method overrides ContextAwarePluginInterface::getContextDefinition()

File

drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 40
Contains \Drupal\Component\Plugin\ContextAwarePluginInterface.

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function getContextDefinition($name);