function MenuActiveTrailInterface::getActiveTrailIds

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php \Drupal\Core\Menu\MenuActiveTrailInterface::getActiveTrailIds()
  2. 8.9.x core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php \Drupal\Core\Menu\MenuActiveTrailInterface::getActiveTrailIds()
  3. 11.x core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php \Drupal\Core\Menu\MenuActiveTrailInterface::getActiveTrailIds()

Gets the active trail IDs of the specified menu tree.

Parameters

string|null $menu_name: (optional) The menu name of the requested tree. If omitted, all menu trees will be searched.

Return value

array An array containing the active trail: a list of plugin IDs.

File

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

Class

MenuActiveTrailInterface
Defines an interface for the active menu trail service.

Namespace

Drupal\Core\Menu

Code

public function getActiveTrailIds($menu_name);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.