Same name and namespace in other branches
  1. 6.x modules/book/book.module \book_theme()
  2. 7.x modules/book/book.module \book_theme()
  3. 8.9.x core/modules/book/book.module \book_theme()
  4. 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,
      ],
    ],
  ];
}