You are here

footermap-item.html.twig in footermap: a footer site map 8

footermap-item.html.twig

Available variables:

  • title: The menu title.
  • href: The menu link path.
  • link: A themed link to print.
  • has_children: A boolean indicating whether the item has children.
  • children: (optional) array of menu children.
  • attributes: A string of HTML attributes to apply to the list item.
  • link_attributes: A string of HTML attributes to apply to the anchor element that are passed through from the Url object.

File

templates/footermap-item.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * footermap-item.html.twig
  5. *
  6. * Available variables:
  7. * - title: The menu title.
  8. * - href: The menu link path.
  9. * - link: A themed link to print.
  10. * - has_children: A boolean indicating whether the item has children.
  11. * - children: (optional) array of menu children.
  12. * - attributes: A string of HTML attributes to apply to the list item.
  13. * - link_attributes: A string of HTML attributes to apply to the anchor
  14. * element that are passed through from the Url object.
  15. */
  16. #}
  17. <li{{ attributes }}>
  18. <a href="{{ url }}" {{ link_attributes }}>{{ title }}</a>
  19. {% if has_children %}
  20. <ul>
  21. {% for child in children %}
  22. {{ child }}
  23. {% endfor %}
  24. </ul>
  25. {% endif %}
  26. </li>