diff --git a/core/modules/book/book.module b/core/modules/book/book.module
index 317a885..a9611f2 100644
--- a/core/modules/book/book.module
+++ b/core/modules/book/book.module
@@ -29,7 +29,7 @@ function book_help($path, $arg) {
$output .= '
' . t('Book navigation') . '';
$output .= '' . t("Book pages have a default book-specific navigation block. This navigation block contains links that lead to the previous and next pages in the book, and to the level above the current page in the book's structure. This block can be enabled on the Blocks administration page. For book pages to show up in the book navigation, they must be added to a book outline.", array('!admin-block' => \Drupal::url('block.admin_display'))) . '';
$output .= '' . t('Collaboration') . '';
- $output .= '' . t('Books can be created collaboratively, as they allow users with appropriate permissions to add pages into existing books, and add those pages to a custom table of contents menu.') . '';
+ $output .= '' . t('Books can be created collaboratively, as they allow users with appropriate permissions to add pages into existing books, and add those pages to a custom table of contents.') . '';
$output .= '' . t('Printing books') . '';
$output .= '' . t("Users with the View printer-friendly books permission can select the printer-friendly version link visible at the bottom of a book page's content to generate a printer-friendly display of the page and all of its subsections.") . '';
$output .= '';
@@ -50,6 +50,9 @@ function book_theme() {
'variables' => array('book_link' => NULL),
'template' => 'book-navigation',
),
+ 'book_tree' => array(
+ 'render element' => 'tree',
+ ),
'book_link' => array(
'render element' => 'element',
),
@@ -715,6 +718,20 @@ function template_preprocess_book_node_export_html(&$variables) {
}
/**
+ * Returns HTML for a wrapper for a book sub-tree.
+ *
+ * @param $variables
+ * An associative array containing:
+ * - tree: An HTML string containing the tree's items.
+ *
+ * @see template_preprocess_menu_tree()
+ * @ingroup themeable
+ */
+function theme_book_tree($variables) {
+ return '';
+}
+
+/**
* Returns HTML for a book link and subtree.
*
* @param array $variables
diff --git a/core/modules/book/lib/Drupal/book/BookManager.php b/core/modules/book/lib/Drupal/book/BookManager.php
index 50a5189..0497d85 100644
--- a/core/modules/book/lib/Drupal/book/BookManager.php
+++ b/core/modules/book/lib/Drupal/book/BookManager.php
@@ -548,8 +548,8 @@ public function bookTreeOutput(array $tree) {
// Make sure drupal_render() does not re-order the links.
$build['#sorted'] = TRUE;
// Add the theme wrapper for outer markup.
- // Allow menu-specific theme overrides.
- $build['#theme_wrappers'][] = 'menu_tree__book_toc_' . $data['link']['nid'];
+ // Allow book-specific theme overrides.
+ $build['#theme_wrappers'][] = 'book_tree__book_toc_' . $data['link']['bid'];
}
return $build;