shortcutLazyBuilder->lazyLinks(); if (empty($shortcut_links['shortcuts']['#links'])) { return [ '#cache' => $shortcut_links['#cache'], ]; } $shortcuts_items = [ [ 'title' => $label, 'class' => 'shortcuts', 'icon' => [ 'icon_id' => 'shortcuts', ], 'below' => $shortcut_links['shortcuts']['#links'], ], ]; return [ '#theme' => 'navigation_menu', '#menu_name' => 'shortcuts', '#title' => $label, '#items' => $shortcuts_items, '#cache' => $shortcut_links['#cache'], ]; } }