Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContextAwarePluginTrait.php

function ContextAwarePluginTrait::getContextValue

10 calls to ContextAwarePluginTrait::getContextValue()
DefaultsSectionStorage::getSectionList in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Gets the section list.
EntityBundle::evaluate in core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php
Evaluates the condition and returns TRUE or FALSE accordingly.
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.

... See full list

File

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

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal