Preserve render keys for compatibility with other modules

Created on 26 July 2023, over 1 year ago
Updated 21 August 2023, over 1 year ago

This module looks very useful. However, I've found that installing this module can interfere with other Layout Builder-related modules that expect to find each layout section under $layout[$id]['layout-builder__section'] . This module modifies the render array and moves each section to $layout[$id][0] .

Using #weight to set the position of the "copy section" link instead of array_pop / array_push preserves the layout-builder__section key and improves compatibility with other modules.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024