You are here

public function PrepareLayoutEvent::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 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\Event

Code

public function __construct(SectionStorageInterface $section_storage) {
  $this->sectionStorage = $section_storage;
}