book-all-books-block.html.twig 605 Bytes
Newer Older
1
{#
2
/**
3
 * @file
4
 * Default theme implementation for rendering book outlines within a block.
5 6 7
 *
 * This template is used only when the block is configured to "show block on all
 * pages", which presents multiple independent books on all pages.
8 9
 *
 * Available variables:
10 11 12
 * - book_menus: Book outlines.
 *   - book_id: The parent book ID.
 *   - menu: The top-level book links.
13 14 15 16
 *
 * @see template_preprocess_book_all_books_block()
 *
 * @ingroup themeable
17
 */
18 19 20 21
#}
{% for book_id, menu in book_menus %}
  <nav id="book-block-menu-{{ book_id }}" class="book-block-menu">
    {{ menu }}
22
  </nav>
23
{% endfor %}