BookManagerInterface::bookTreeOutput

public BookManagerInterface::bookTreeOutput(array $tree)

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_render().

See also

\Drupal\Core\Menu\MenuLinkTree::build

File

core/modules/book/src/BookManagerInterface.php, line 254

Class

BookManagerInterface
Provides an interface defining a book manager.

Namespace

Drupal\book

Code

public function bookTreeOutput(array $tree);
doc_Drupal
2016-10-29 08:48:15
Comments
Leave a Comment

Please login to continue.