W3cubDocs

/Drupal 8

interface MenuActiveTrailInterface

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.

Hierarchy

File

core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php, line 11

Namespace

Drupal\Core\Menu

Members

Name Modifiers Type Description
MenuActiveTrailInterface::getActiveLink public function Fetches a menu link which matches the route name, parameters and menu name.
MenuActiveTrailInterface::getActiveTrailIds public function Gets the active trail IDs of the specified menu 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!MenuActiveTrailInterface.php/interface/MenuActiveTrailInterface/8.1.x