function book_theme

Same name and namespace in other branches
  1. 7.x modules/book/book.module \book_theme()
  2. 9 core/modules/book/book.module \book_theme()
  3. 8.9.x core/modules/book/book.module \book_theme()
  4. 10 core/modules/book/book.module \book_theme()

Implements hook_theme().

File

core/modules/book/book.module, line 57

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,
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.