Skip to content
Snippets Groups Projects
Verified Commit efc9b3f4 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 4f3a6731
No related branches found
No related tags found
5 merge requests!8506Draft: Issue #3456536 by ibrahim tameme,!5646Issue #3350972 by nod_: [random test failure]...,!5600Issue #3350972 by nod_: [random test failure]...,!5343Issue #3305066 by quietone, Rename RedirectLeadingSlashesSubscriber,!3603#ISSUE 3346218 Add a different message on edit comment
......@@ -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