public function ContextAwarePluginInterface::getContextValue in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextValue()
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 lib/
Drupal/ Component/ Plugin/ ContextAwarePluginBase.php - Gets the value for a defined context.
File
- lib/
Drupal/ Component/ Plugin/ ContextAwarePluginInterface.php, line 90 - Contains \Drupal\Component\Plugin\ContextAwarePluginInterface.
Class
- ContextAwarePluginInterface
- Interface for defining context aware plugins.
Namespace
Drupal\Component\PluginCode
public function getContextValue($name);