book-node-export-html.html.twig

Default theme implementation 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()

template_preprocess_book_node_export_html()

1 theme call to book-node-export-html.html.twig
book_node_export in drupal/core/modules/book/book.module
Generates printer-friendly HTML for a node.

File

drupal/core/modules/book/templates/book-node-export-html.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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()
  14. * @see template_preprocess_book_node_export_html()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <article id="node-{{ node.nid }}" class="section-{{ depth }}">
  20. <h1 class="book-heading">{{ title }}</h1>
  21. {{ content }}
  22. {{ children }}
  23. </article>

Related topics