function ContextAwarePluginTrait::getContextValue

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php \Drupal\Core\Plugin\ContextAwarePluginTrait::getContextValue()
  2. 10 core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php \Drupal\Core\Plugin\ContextAwarePluginTrait::getContextValue()
8 calls to ContextAwarePluginTrait::getContextValue()
DefaultsSectionStorage::getSectionList in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Gets the section list.
ExtraFieldBlock::getEntity in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Gets the entity that has the field.
FieldBlock::build in core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
Builds and returns the renderable array for this block plugin.
FieldBlock::getEntity in core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
Gets the entity that has the field.
Language::evaluate in core/modules/language/src/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.

... See full list

File

core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php, line 115

Class

ContextAwarePluginTrait
Provides a trait to add context-aware functionality to plugins.

Namespace

Drupal\Core\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.