function PrepareLayoutEvent::__construct
Same name in other branches
- 9 core/modules/layout_builder/src/Event/PrepareLayoutEvent.php \Drupal\layout_builder\Event\PrepareLayoutEvent::__construct()
- 10 core/modules/layout_builder/src/Event/PrepareLayoutEvent.php \Drupal\layout_builder\Event\PrepareLayoutEvent::__construct()
Constructs a new PrepareLayoutEvent.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage preparing the Layout.
File
-
core/
modules/ layout_builder/ src/ Event/ PrepareLayoutEvent.php, line 31
Class
- PrepareLayoutEvent
- Event fired in #pre_render of \Drupal\layout_builder\Element\LayoutBuilder.
Namespace
Drupal\layout_builder\EventCode
public function __construct(SectionStorageInterface $section_storage) {
$this->sectionStorage = $section_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.