function BookManager::bookTreeOutput

Same name in this branch
  1. 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeOutput()
Same name and namespace in other branches
  1. 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeOutput()
  2. 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeOutput()
  3. 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::bookTreeOutput()
  4. 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::bookTreeOutput()

Returns a rendered menu tree.

The menu item's LI element is given one of the following classes:

  • expanded: The menu item is showing its submenu.
  • collapsed: The menu item has a submenu which is not shown.

Parameters

array $tree: A data structure representing the tree as returned from buildBookOutlineData.

Return value

array A structured array to be rendered by \Drupal\Core\Render\RendererInterface::render().

Overrides BookManagerInterface::bookTreeOutput

File

core/modules/book/src/ProxyClass/BookManager.php, line 163

Class

BookManager
Provides a proxy class for \Drupal\book\BookManager.

Namespace

Drupal\book\ProxyClass

Code

public function bookTreeOutput(array $tree) {
  return $this->lazyLoadItself()
    ->bookTreeOutput($tree);
}

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