function ContextAwarePluginBase::getContextValue

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

Overrides ContextAwarePluginInterface::getContextValue

13 calls to ContextAwarePluginBase::getContextValue()
ConditionTestDualUser::evaluate in core/modules/system/tests/modules/condition_test/src/Plugin/Condition/ConditionTestDualUser.php
Evaluates the condition and returns TRUE or FALSE accordingly.
DefaultsSectionStorage::getSectionList in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Gets the section list.
Language::evaluate in core/modules/language/src/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.
MockComplexContextBlock::getTitle in core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockComplexContextBlock.php
MockUserNameBlock::getTitle in core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserNameBlock.php

... See full list

File

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

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.