book-node-export-html.html.twig
Same filename in this branch
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/
profiles/ demo_umami/ themes/ umami/ templates/ classy/ content/ book-node-export-html.html.twig
View source
- {#
- /**
- * @file
- * 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 template_preprocess_book_node_export_html()
- */
- #}
- <article id="node-{{ node.id }}" class="section-{{ depth }}">
- <h1 class="book-heading">{{ title }}</h1>
- {{ content }}
- {{ children }}
- </article>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.