You are here

toc-header.html.twig in TOC API 8

Default theme implementation to display a Table of contents header.

Returns HTML for a Table of contents header.

Available variables:

  • item: A table of contents header item.
  • options: Table of contents options.
  • header_options: Options associated with the current header item.

File

templates/toc-header.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a Table of contents header.
  5. *
  6. * Returns HTML for a Table of contents header.
  7. *
  8. * Available variables:
  9. * - item: A table of contents header item.
  10. * - options: Table of contents options.
  11. * - header_options: Options associated with the current header item.
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <{{ tag }}{{ attributes }}>{% if header_options.display_number %}<span>{{ header_options.number_prefix }}{% if options.number_path and path %}{{ path }}{% else %}{{ value }}{% endif %}{{ header_options.number_suffix }}</span>{% endif %}{{ html }}</{{ tag }}>