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

Breadcrumb

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

function ContextAwarePluginTrait::setContextValue

1 call to ContextAwarePluginTrait::setContextValue()
DefaultsSectionStorage::setContext in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php

File

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

Class

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

Namespace

Drupal\Core\Plugin

Code

public function setContextValue($name, $value) {
    $this->setContext($name, Context::createFromContext($this->getContext($name), $value));
    return $this;
}

API Navigation

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