function ContextAwarePluginBase::setContextValue
Same name in this branch
- 8.9.x core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php \Drupal\Component\Plugin\ContextAwarePluginBase::setContextValue()
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php \Drupal\Component\Plugin\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\PluginCode
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.