book-node-export-html.html.twig

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

Theme override for a single node in a printer-friendly outline.

Available variables:

  • node: Fully loaded node.
  • depth: Depth of the current node inside the outline.
  • title: Node title.
  • content: Node content.
  • children: All the child nodes recursively rendered through this file.

See also

template_preprocess_book_node_export_html()

1 theme call to book-node-export-html.html.twig
BookExport::bookNodeExport in core/modules/book/src/BookExport.php
Generates printer-friendly HTML for a node.

File

core/themes/classy/templates/content/book-node-export-html.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a single node in a printer-friendly outline.
  5. *
  6. * Available variables:
  7. * - node: Fully loaded node.
  8. * - depth: Depth of the current node inside the outline.
  9. * - title: Node title.
  10. * - content: Node content.
  11. * - children: All the child nodes recursively rendered through this file.
  12. *
  13. * @see template_preprocess_book_node_export_html()
  14. */
  15. #}
  16. <article id="node-{{ node.id }}" class="section-{{ depth }}">
  17. <h1 class="book-heading">{{ title }}</h1>
  18. {{ content }}
  19. {{ children }}
  20. </article>

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