function ContextAwarePluginBase::setContextValue

Overrides ContextAwarePluginBase::setContextValue

1 call to ContextAwarePluginBase::setContextValue()
DefaultsSectionStorage::setContext in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Set a context on this plugin.

File

core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php, line 72

Class

ContextAwarePluginBase
Base class for plugins that are context aware.

Namespace

Drupal\Core\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.