Change Layout Preparation into an Event to allow proper alterations

Created on 28 May 2020, over 4 years ago
Updated 10 September 2023, over 1 year ago

Problem/Motivation

Currently the LayoutBuilder Render element itself holds the key to the layout preparation, making it difficult for storage plugins or custom code to decide how to ouput a layout

Proposed resolution

Implement an Event for preparing a layout so subscribers can easily alter the sections.

Remaining tasks

  • Tests? Does this need to be tested outside of current test cases?

User interface changes

None

API changes

New LayoutBuilderEvents::PREPARE_LAYOUT event for modules to interact without layouts during rendering.

Data model changes

None

Release notes snippet

New LayoutBuilderEvents::PREPARE_LAYOUT event for modules to interact without layouts during rendering see https://www.drupal.org/node/3160587

Feature request
Status

Fixed

Version

9.1

Component
Layout builder 

Last updated 2 days ago

Created by

🇨🇦Canada b_sharpe

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024