You are here

function book_theme in Drupal 10

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