class PrepareLayoutEvent extends Event (View source)

Event fired in #pre_render of \Drupal\layout_builder\Element\LayoutBuilder.

Subscribers to this event can prepare section storage before rendering.

Properties

protected SectionStorageInterface $sectionStorage

The section storage plugin.

Methods

__construct(SectionStorageInterface $section_storage)

Constructs a new PrepareLayoutEvent.

getSectionStorage()

Gets the section storage.

Details

__construct(SectionStorageInterface $section_storage)

Constructs a new PrepareLayoutEvent.

Parameters

SectionStorageInterface $section_storage

The section storage preparing the Layout.

SectionStorageInterface getSectionStorage()

Gets the section storage.

Return Value

SectionStorageInterface

The section storage.