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.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
- {% set classes = ['toc-default'] %}
- <div {{ attributes.addClass(classes) }}>
- {{ toc_default }}
- </div>