function SimpleConfigSectionStorage::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.
Overrides SectionStorageInterface::getContextsDuringPreview
File
-
core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ SectionStorage/ SimpleConfigSectionStorage.php, line 197
Class
- SimpleConfigSectionStorage
- Provides section storage utilizing simple config.
Namespace
Drupal\layout_builder_test\Plugin\SectionStorageCode
public function getContextsDuringPreview() {
return $this->getContexts();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.