function book_theme in Drupal 10
Same name and namespace in other branches
- 8 core/modules/book/book.module \book_theme()
- 6 modules/book/book.module \book_theme()
- 7 modules/book/book.module \book_theme()
- 9 core/modules/book/book.module \book_theme()
Implements hook_theme().
File
- core/
modules/ book/ book.module, line 57 - Allows users to create and organize related content in an outline.
Code
function book_theme() {
return [
'book_navigation' => [
'variables' => [
'book_link' => NULL,
],
],
'book_tree' => [
'variables' => [
'items' => [],
'attributes' => [],
],
],
'book_export_html' => [
'variables' => [
'title' => NULL,
'contents' => NULL,
'depth' => NULL,
],
],
'book_all_books_block' => [
'render element' => 'book_menus',
],
'book_node_export_html' => [
'variables' => [
'node' => NULL,
'content' => NULL,
'children' => NULL,
],
],
];
}