"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/themes/classy/templates/navigation/book-all-books-block.html.twig" (26 Nov 2020, 684 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 %}