public MenuLinkTreeInterface::getCurrentRouteMenuTreeParameters($menu_name)
Gets the link tree parameters for rendering a specific menu.
Builds menu link tree parameters that:
This only sets the (relatively complex) parameters to achieve the two above goals, but you can still further customize these parameters.
string $menu_name: The menu name, needed for retrieving the active trail and links with the 'expanded' flag enabled.
\Drupal\Core\Menu\MenuTreeParameters The parameters to determine which menu links to be loaded into a tree.
\Drupal\Core\Menu\MenuTreeParameters
public function getCurrentRouteMenuTreeParameters($menu_name);
© 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::getCurrentRouteMenuTreeParameters/8.1.x