Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme implementation to display a menu. Chris@0: * Chris@0: * Available variables: Chris@0: * - menu_name: The machine name of the menu. Chris@0: * - items: A nested list of menu items. Each menu item contains: Chris@0: * - attributes: HTML attributes for the menu item. Chris@0: * - below: The menu item child items. Chris@0: * - title: The menu link title. Chris@0: * - url: The menu link url, instance of \Drupal\Core\Url Chris@0: * - localized_options: Menu link localized options. Chris@0: * - is_expanded: TRUE if the link has visible children within the current Chris@0: * menu tree. Chris@0: * - is_collapsed: TRUE if the link has children within the current menu tree Chris@0: * that are not currently visible. Chris@0: * - in_active_trail: TRUE if the link is in the active trail. Chris@0: * Chris@0: * @ingroup themeable Chris@0: */ Chris@0: #} Chris@0: {% import _self as menus %} Chris@0: Chris@0: {# Chris@0: We call a macro which calls itself to render the full tree. Chris@0: @see http://twig.sensiolabs.org/doc/tags/macro.html Chris@0: #} Chris@0: {{ menus.menu_links(items, attributes, 0) }} Chris@0: Chris@0: {% macro menu_links(items, attributes, menu_level) %} Chris@0: {% import _self as menus %} Chris@0: {% if items %} Chris@0: {% if menu_level == 0 %} Chris@0: