Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
menu_item_extras
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
menu_item_extras
Merge requests
!24
Issue
#3167363
: Children block not rendering children in Layout Builder
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3167363
: Children block not rendering children in Layout Builder
issue/menu_item_extras-3167363:3167363-children-block-not
into
8.x-2.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Oleh Vehera
requested to merge
issue/menu_item_extras-3167363:3167363-children-block-not
into
8.x-2.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
8.x-2.x
version 1
7328365c
2 years ago
8.x-2.x (base)
and
latest version
latest version
a017d891
1 commit,
2 years ago
version 1
7328365c
1 commit,
2 years ago
1 file
+
0
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Service/MenuLinkTreeHandler.php
+
0
−
6
Options
@@ -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