You are here

toc-default.html.twig in TOC API 8

Default theme implementation to display a table of contents.

Returns HTML for a responsive table of contents.

Available variables:

  • toc_default: A render array represent a table of content for desktop.

File

templates/toc-default.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a table of contents.
  5. *
  6. * Returns HTML for a responsive table of contents.
  7. *
  8. * Available variables:
  9. * - toc_default: A render array represent a table of content for desktop.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {% set classes = ['toc-default'] %}
  15. <div {{ attributes.addClass(classes) }}>
  16. {{ toc_default }}
  17. </div>