field-menu-item.html.twig in Field Menu 8
Default theme implementation for a field menu item
Available variables:
- title
- tree
1 theme call to field-menu-item.html.twig
- MenuTreeFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ MenuTreeFormatter.php - Builds a renderable array for a field value.
File
templates/field-menu-item.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a field menu item
- *
- * Available variables:
- * - title
- * - tree
- */
- #}
- {% if title %}
- <h2 class="menu-title">{{ title }}</h2>
- {% endif %}
- {{ tree }}