book-tree.html.twig

Default theme implementation to display a book tree.

Returns HTML for a wrapper for a book sub-tree.

Available variables:

  • items: A nested list of book items. Each book item contains:
    • attributes: HTML attributes for the book item.
    • below: The book item child items.
    • title: The book link title.
    • url: The book link URL, instance of \Drupal\Core\Url.
    • is_expanded: TRUE if the link has visible children within the current book tree.
    • is_collapsed: TRUE if the link has children within the current book tree that are not currently visible.
    • in_active_trail: TRUE if the link is in the active trail.

File

core/modules/book/templates/book-tree.html.twig

Related topics

Theme system overview
Functions and templates for the user interface that themes can override.
doc_Drupal
2016-10-29 08:47:56
Comments
Leave a Comment

Please login to continue.