Layout Translation Section Indexes Misalignment

Created on 9 July 2025, about 1 month ago

Problem/Motivation

When translating layouts from the layout library, the numeric index of sections in translated layouts sometimes doesn't match the original layout. This causes components to appear in the wrong section in the translated version of the layout.

Usually this is caused when a component is moved between sections in the original layout.

When this happens, there is a fatal error when accessing to a node using the translated layout.

The error is

Drupal\layout_builder\SectionComponent::__construct(): Argument #4 ($additional) must be of type array, null given, called in modules/contrib/layout_library/src/LayoutStorageHandler.php on line 41

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain unstatu

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

Comments & Activities

  • Issue created by @unstatu
  • 🇪🇸Spain unstatu

    Closing because the system works as expected and as it works with the rest of config entities. If you move a component, the component is removed from the translated config entities.

Production build 0.71.5 2024