Skip to content
Snippets Groups Projects

Issue #3167363: Children block not rendering children in Layout Builder

1 file
+ 0
6
Compare changes
  • Side-by-side
  • Inline
@@ -85,12 +85,6 @@ class MenuLinkTreeHandler implements MenuLinkTreeHandlerInterface {
$view_mode = $entity->id() ? $this->getMenuLinkContentViewMode($entity) : 'default';
$render_output = $view_builder->view($entity, $view_mode);
// Build the entity view ourselves and unset the #pre_render so that it
// doesn't run twice later on, when rendered.
// This gives us access to all fields immediately in the menu template.
$render_output = $view_builder->build($render_output);
array_pop($render_output['#pre_render']);
// Unset cache, handled by menu_item_extras_link_item_content_active_trails.
unset($render_output['#cache']);
Loading