You are here

toc-js.html.twig in Toc.js 8

Same filename and directory in other branches
  1. 2.0.x templates/toc-js.html.twig

Default theme implementation to display a responsive table of contents.

Returns HTML for a responsive table of contents.

Available variables:

  • entity: the entity the TOC belongs to.
  • title: the title to display for the table of content.
  • tag: the tag to use for the title.

File

templates/toc-js.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a responsive table of contents.
  5. *
  6. * Returns HTML for a responsive table of contents.
  7. *
  8. * Available variables:
  9. * - entity: the entity the TOC belongs to.
  10. * - title: the title to display for the table of content.
  11. * - tag: the tag to use for the title.
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {# Do not remove this anchor #}
  17. <div id="sticky-anchor"></div>
  18. <div {{ attributes }}>
  19. <{{ tag }} {{ title_attributes }}>{{ title }}</{{ tag }}>
  20. <nav role="navigation" aria-label="{{ title }}"></nav>
  21. </div>