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.
1 theme call to toc-header.html.twig
- TocBuilder::renderContent in src/
TocBuilder.php - Renders a table of contents' body.
File
templates/toc-header.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
-
- <{{ 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 }}>