If you'll add anything that doesn't have a 'layout_builder_add_block' key to the output of the "build" method of your layout, you will get an error on the layout's translation page.

Created on 13 January 2020, over 5 years ago
Updated 21 July 2025, 16 days ago

The error will be:

TypeError: Argument 1 passed to Drupal\layout_builder_st\Element\LayoutBuilder::setTranslationAcess() must be of the type array, null given

To fix this, we have to check for existance of the "layout_builder_add_block" key before we will try to manipulate it. Patch will follow.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇵🇱Poland Luke_Nuke

Live updates comments and jobs are added and updated live.
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