public MenuLinkTreeInterface::build(array $tree)
Builds a renderable array from a menu tree.
The menu item's LI element is given one of the following classes:
\Drupal\Core\Menu\MenuLinkTreeElement[] $tree: A data structure representing the tree, as returned from MenuLinkTreeInterface::load().
array A renderable array.
public function build(array $tree);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkTreeInterface.php/function/MenuLinkTreeInterface::build/8.1.x