Skip to content
Snippets Groups Projects

Call to a member function isTranslatable() issue fixed

1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -136,6 +136,9 @@ final class LayoutBuilder extends CoreLayoutBuilder {
'uuid' => $uuid,
],
];
$component = $section->getComponent($uuid);
if ($component !== null) {
if (static::isTranslation($section_storage)) {
$contextual_group = 'layout_builder_block_translation';
$component = $section->getComponent($uuid);
@@ -165,6 +168,9 @@ final class LayoutBuilder extends CoreLayoutBuilder {
'operations' => 'move:update:remove',
];
}
} else {
return null;
}
return [
$contextual_group => $contextual_link_settings,
];
Loading