- Issue created by @Duwid
- last update
10 months ago 40 pass
TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given in array_search() (line 90 of modules/contrib/layout_builder_st/src/Element/LayoutBuilder.php).
Translate node and try to open the layout builder of this translation. The error happens, if a placed block ($region_build[$uuid]) has no class attribute.
add isset($region_build[$uuid]['#attributes']['class'])
Needs review
Code