function ContextAwarePluginBase::getContextValue

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php \Drupal\Component\Plugin\ContextAwarePluginBase::getContextValue()

Overrides ContextAwarePluginInterface::getContextValue

File

core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php, line 148

Class

ContextAwarePluginBase
Base class for plugins that are context aware.

Namespace

Drupal\Component\Plugin

Code

public function getContextValue($name) {
    return $this->getContext($name)
        ->getContextValue();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.