function SectionStorageInterface::getContextsDuringPreview
Same name in other branches
- 9 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::getContextsDuringPreview()
- 8.9.x core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::getContextsDuringPreview()
- 10 core/modules/layout_builder/src/SectionStorageInterface.php \Drupal\layout_builder\SectionStorageInterface::getContextsDuringPreview()
Gets contexts for use during preview.
When not in preview, ::getContexts() will be used.
Return value
\Drupal\Core\Plugin\Context\ContextInterface[] The plugin contexts suitable for previewing.
3 methods override SectionStorageInterface::getContextsDuringPreview()
- NavigationSectionStorage::getContextsDuringPreview in core/
modules/ navigation/ src/ Plugin/ SectionStorage/ NavigationSectionStorage.php - Gets contexts for use during preview.
- SectionStorageBase::getContextsDuringPreview in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ SectionStorageBase.php - Gets contexts for use during preview.
- SimpleConfigSectionStorage::getContextsDuringPreview in core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ SectionStorage/ SimpleConfigSectionStorage.php - Gets contexts for use during preview.
File
-
core/
modules/ layout_builder/ src/ SectionStorageInterface.php, line 100
Class
- SectionStorageInterface
- Defines an interface for Section Storage type plugins.
Namespace
Drupal\layout_builderCode
public function getContextsDuringPreview();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.