menu--group-menu.html.twig in Group Content Menu 8
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.
File
templates/menu--group-menu.html.twigView source
- {#
- /**
- * @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
- */
- #}
- {# Works well in a Bootstrap based theme. Other themes it might not be as pretty. #}
- {% extends "menu.html.twig" %}
- {%
- set classes = [
- 'menu',
- 'group-menu',
- 'nav',
- 'navbar-nav',
- ]
- %}