public function ContextAwarePluginBase::getContextValue in Plug 7
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.
Overrides ContextAwarePluginInterface::getContextValue
File
- lib/Drupal/ Component/ Plugin/ ContextAwarePluginBase.php, line 132 
- Contains \Drupal\Component\Plugin\ContextAwarePluginBase.
Class
- ContextAwarePluginBase
- Base class for plugins that are context aware.
Namespace
Drupal\Component\PluginCode
public function getContextValue($name) {
  return $this
    ->getContext($name)
    ->getContextValue();
}