MenuActiveTrailInterface
interface MenuActiveTrailInterface (View source)
Defines an interface for the active menu trail service.
The active trail of a given menu is the trail from the current page to the root of that menu's tree.
Methods
array
getActiveTrailIds(string|null $menu_name)
Gets the active trail IDs of the specified menu tree.
MenuLinkInterface|null
getActiveLink(string|null $menu_name = NULL)
Fetches a menu link which matches the route name, parameters and menu name.
Details
array
getActiveTrailIds(string|null $menu_name)
Gets the active trail IDs of the specified menu tree.
MenuLinkInterface|null
getActiveLink(string|null $menu_name = NULL)
Fetches a menu link which matches the route name, parameters and menu name.