36 lines
872 B
Twig
36 lines
872 B
Twig
{#
|
|
/**
|
|
* @file
|
|
* Default theme implementation to display a menu.
|
|
*
|
|
* Available variables:
|
|
* - classes: A list of classes to apply to the top level <ul> element.
|
|
* - dropdown_classes: A list of classes to apply to the dropdown <ul> element.
|
|
* - menu_name: The machine name of the menu.
|
|
* - items: A nested list of menu items. Each menu item contains:
|
|
* - attributes: HTML attributes for the menu item.
|
|
* - below: The menu item child items.
|
|
* - title: The menu link title.
|
|
* - url: The menu link url, instance of \Drupal\Core\Url
|
|
* - localized_options: Menu link localized options.
|
|
*
|
|
* @ingroup templates
|
|
*/
|
|
#}
|
|
{% extends "menu.html.twig" %}
|
|
{%
|
|
set classes = [
|
|
'menu',
|
|
'menu--' ~ menu_name|clean_class,
|
|
'nav',
|
|
'navbar-nav',
|
|
'navbar-right',
|
|
]
|
|
%}
|
|
{%
|
|
set dropdown_classes = [
|
|
'dropdown-menu',
|
|
'dropdown-menu-right',
|
|
]
|
|
%}
|