book-all-books-block.html.twig

Same filename in this branch
  1. 9 core/themes/olivero/templates/navigation/book-all-books-block.html.twig
  2. 9 core/themes/stable9/templates/navigation/book-all-books-block.html.twig
  3. 9 core/themes/seven/templates/classy/navigation/book-all-books-block.html.twig
  4. 9 core/themes/claro/templates/classy/navigation/book-all-books-block.html.twig
  5. 9 core/themes/bartik/templates/classy/navigation/book-all-books-block.html.twig
  6. 9 core/themes/stable/templates/navigation/book-all-books-block.html.twig
  7. 9 core/themes/classy/templates/navigation/book-all-books-block.html.twig
  8. 9 core/modules/book/templates/book-all-books-block.html.twig
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-all-books-block.html.twig
  2. 8.9.x core/themes/seven/templates/classy/navigation/book-all-books-block.html.twig
  3. 8.9.x core/themes/claro/templates/classy/navigation/book-all-books-block.html.twig
  4. 8.9.x core/themes/bartik/templates/classy/navigation/book-all-books-block.html.twig
  5. 8.9.x core/themes/stable/templates/navigation/book-all-books-block.html.twig
  6. 8.9.x core/themes/classy/templates/navigation/book-all-books-block.html.twig
  7. 8.9.x core/modules/book/templates/book-all-books-block.html.twig
  8. 10 core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-all-books-block.html.twig
  9. 10 core/themes/olivero/templates/navigation/book-all-books-block.html.twig
  10. 10 core/themes/stable9/templates/navigation/book-all-books-block.html.twig
  11. 10 core/themes/claro/templates/classy/navigation/book-all-books-block.html.twig
  12. 10 core/modules/book/templates/book-all-books-block.html.twig
  13. 11.x core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-all-books-block.html.twig
  14. 11.x core/themes/olivero/templates/navigation/book-all-books-block.html.twig
  15. 11.x core/themes/stable9/templates/navigation/book-all-books-block.html.twig
  16. 11.x core/themes/claro/templates/classy/navigation/book-all-books-block.html.twig
  17. 11.x core/modules/book/templates/book-all-books-block.html.twig

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

template_preprocess_book_all_books_block()

1 theme call to book-all-books-block.html.twig
BookNavigationBlock::build in core/modules/book/src/Plugin/Block/BookNavigationBlock.php
Builds and returns the renderable array for this block plugin.

File

core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-all-books-block.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for rendering book outlines within a block.
  5. *
  6. * This template is used only when the block is configured to "show block on all
  7. * pages", which presents multiple independent books on all pages.
  8. *
  9. * Available variables:
  10. * - book_menus: Book outlines.
  11. * - id: The parent book ID.
  12. * - title: The parent book title.
  13. * - menu: The top-level book links.
  14. *
  15. * @see template_preprocess_book_all_books_block()
  16. */
  17. #}
  18. {% for book in book_menus %}
  19. <nav id="book-block-menu-{{ book.id }}" class="book-block-menu" role="navigation" aria-label="{% trans %}Book outline for {{ book.title }}{% endtrans %}">
  20. {{ book.menu }}
  21. </nav>
  22. {% endfor %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.