function ContextAwarePluginTrait::getContextValue
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php \Drupal\Core\Plugin\ContextAwarePluginTrait::getContextValue()
- 10 core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php \Drupal\Core\Plugin\ContextAwarePluginTrait::getContextValue()
3 calls to ContextAwarePluginTrait::getContextValue()
- OverridesSectionStorage::getDefaultSectionStorage in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ OverridesSectionStorage.php - OverridesSectionStorage::getEntity in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ OverridesSectionStorage.php - Gets the entity storing the overrides.
- OverridesSectionStorage::getTempstoreKey in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ OverridesSectionStorage.php
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\PluginCode
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.