You are here

site-map-box.html.twig in Site map 8

Theme implementation to display a site map box.

Available variables:

  • title: The subject of the box.
  • content: The content of the box.
  • attributes: Optional attributes for the box.
  • options: Options are set by site_map.helper service.

See also

template_preprocess()

template_preprocess_site_map_box()

File

templates/site-map-box.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation to display a site map box.
  5. *
  6. * Available variables:
  7. * - title: The subject of the box.
  8. * - content: The content of the box.
  9. * - attributes: Optional attributes for the box.
  10. * - options: Options are set by site_map.helper service.
  11. *
  12. * @see template_preprocess()
  13. * @see template_preprocess_site_map_box()
  14. */
  15. #}
  16. <div{{ attributes.addClass('site-map-box') }}>
  17. {% if options.show_titles %}
  18. <h2>{{ title }}</h2>
  19. {% endif %}
  20. <div class="content">
  21. {{ content }}
  22. </div>
  23. </div>