function template_preprocess_book_node_export_html
Same name in other branches
- 7.x modules/book/book.module \template_preprocess_book_node_export_html()
- 8.9.x core/modules/book/book.module \template_preprocess_book_node_export_html()
- 10 core/modules/book/book.module \template_preprocess_book_node_export_html()
- 11.x core/modules/book/book.module \template_preprocess_book_node_export_html()
Prepares variables for single node export templates.
Default template: book-node-export-html.html.twig.
Parameters
array $variables: An associative array containing the following keys:
- node: The node that will be output.
- children: All the rendered child nodes within the current node. Defaults to an empty string.
File
-
core/
modules/ book/ book.module, line 496
Code
function template_preprocess_book_node_export_html(&$variables) {
$variables['depth'] = $variables['node']->book['depth'];
$variables['title'] = $variables['node']->label();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.