By b_sharpe on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.0
Issue links:
Description:
The \Drupal\layout_builder\Element\LayoutBuilder element now dispatches LayoutBuilderEvents::PREPARE_LAYOUT event while preparing the element during #pre_render. This will allow for other modules to interact with the SectionStorageInterface $section_storage object (see \Drupal\layout_builder\Event\PrepareLayoutEvent::getSectionStorage()).
Read this documentation for how to subscribe to the LayoutBuilderEvents::PREPARE_LAYOUT event.
The default priority of the existing functionality is set to 10 to make it easy to act either before or after the core event listener.
Impacts:
Module developers