Drupal investigation

book-all-books-block.html.twig 664B

12345678910111213141516171819202122232425
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  18. */
  19. #}
  20. {% for book in book_menus %}
  21. <nav role="navigation" aria-label="{% trans %}Book outline for {{ book.title }}{% endtrans %}">
  22. {{ book.menu }}
  23. </nav>
  24. {% endfor %}