public function ContextAwarePluginBase::getContextValue

Implements \Drupal\Component\Plugin\ContextAwarePluginInterface::getContextValue().

Overrides ContextAwarePluginInterface::getContextValue

5 calls to ContextAwarePluginBase::getContextValue()
Language::evaluate in drupal/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.
MockComplexContextBlock::getTitle in drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/plugin_test/mock_block/MockComplexContextBlock.php
MockUserNameBlock::getTitle in drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/plugin_test/mock_block/MockUserNameBlock.php
NodeType::evaluate in drupal/core/modules/node/lib/Drupal/node/Plugin/Condition/NodeType.php
Implements \Drupal\condition\ConditionInterface::evaluate().
TypedDataStringBlock::getTitle in drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/plugin_test/mock_block/TypedDataStringBlock.php

File

drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php, line 118
Contains \Drupal\Component\Plugin\ContextAwarePluginBase

Class

ContextAwarePluginBase
Base class for plugins that are context aware.

Namespace

Drupal\Component\Plugin

Code

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