public function PrepareLayoutEvent::__construct in Drupal 9
Same name and namespace in other branches
- 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;
}