book-all-books-block.html.twig in Drupal 10
Same filename in this branch
- 10 core/modules/book/templates/book-all-books-block.html.twig
- 10 core/themes/starterkit_theme/templates/navigation/book-all-books-block.html.twig
- 10 core/themes/classy/templates/navigation/book-all-books-block.html.twig
- 10 core/themes/olivero/templates/navigation/book-all-books-block.html.twig
- 10 core/themes/stable9/templates/navigation/book-all-books-block.html.twig
- 10 core/themes/stable/templates/navigation/book-all-books-block.html.twig
- 10 core/themes/claro/templates/classy/navigation/book-all-books-block.html.twig
- 10 core/themes/seven/templates/classy/navigation/book-all-books-block.html.twig
- 10 core/themes/bartik/templates/classy/navigation/book-all-books-block.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-all-books-block.html.twig
Same filename and directory in other branches
Theme override for rendering book outlines within a block.
This template is used only when the block is configured to "show block on all pages", which presents multiple independent books on all pages.
Available variables:
- book_menus: Book outlines.
- id: The parent book ID.
- title: The parent book title.
- menu: The top-level book links.
See also
1 theme call to book-all-books-block.html.twig
- BookNavigationBlock::build in core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php
File
core/themes/seven/templates/classy/navigation/book-all-books-block.html.twigView source
- {#
- /**
- * @file
- * Theme override for rendering book outlines within a block.
- *
- * This template is used only when the block is configured to "show block on all
- * pages", which presents multiple independent books on all pages.
- *
- * Available variables:
- * - book_menus: Book outlines.
- * - id: The parent book ID.
- * - title: The parent book title.
- * - menu: The top-level book links.
- *
- * @see template_preprocess_book_all_books_block()
- */
- #}
- {% for book in book_menus %}
- <nav id="book-block-menu-{{ book.id }}" class="book-block-menu" role="navigation" aria-label="{% trans %}Book outline for {{ book.title }}{% endtrans %}">
- {{ book.menu }}
- </nav>
- {% endfor %}