Skip to content
Snippets Groups Projects
Verified Commit 31113fd6 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3082032 by kristiaanvandeneynde:...

Issue #3082032 by kristiaanvandeneynde: ToolbarController::preRenderGetRenderedSubtrees() deletes parent's cacheability

(cherry picked from commit 2fe6ae3d)
parent 813b70ab
No related branches found
No related tags found
9 merge requests!8394[warning] array_flip(): Can only flip STRING and INTEGER values, when saving a non-revisionable custom content entity,!7780issue 3443822: fix for 'No route found for the specified format html. Supported formats: json, xml.',!5013Issue #3071143: Table Render Array Example Is Incorrect,!4848Issue #1566662: Update module should send notifications on Thursdays,!4792Issue #2230689: Remove redundant "Italic" style,!4220Issue #3368223: Link field > Access to internal links is not checked on display.,!3884Issue #3356842,!3812Draft: Issue #3339373 by alexpott, andypost, mondrake:...,!1459Issue #3087632: menu_name max length is too long
......@@ -108,7 +108,7 @@ public static function preRenderGetRenderedSubtrees(array $data) {
$tree = $menu_tree->transform($tree, $manipulators);
$subtrees = [];
// Calculated the combined cacheability of all subtrees.
$cacheability = new CacheableMetadata();
$cacheability = CacheableMetadata::createFromRenderArray($data);
foreach ($tree as $element) {
/** @var \Drupal\Core\Menu\MenuLinkInterface $link */
$link = $element->link;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment