8.5.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)
8.0.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)
8.1.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)
8.2.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)
8.3.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)
8.4.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)
8.6.x ContextAwarePluginInterface.php ContextAwarePluginInterface::getContextValue($name)

Gets the value for a defined context.

Parameters

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

Return value

mixed The currently set context value.

Throws

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

1 method overrides ContextAwarePluginInterface::getContextValue()
ContextAwarePluginBase::getContextValue in core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Gets the value for a defined context.

File

core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php, line 85

Class

ContextAwarePluginInterface
Interface for defining context aware plugins.

Namespace

Drupal\Component\Plugin

Code

public function getContextValue($name);