1. drupal
    1. 8
    2. 7
7 – 8 menu_tree_get_path($menu_name)

Get the path for determining the active trail of the specified menu tree.


$menu_name The menu name of the requested tree.

Return value

A string containing the path. If no path has been specified with menu_tree_set_path(), NULL is returned.

Related topics

▾ 1 function calls menu_tree_get_path()

menu_tree_page_data in includes/
Get the data structure representing a named menu tree, based on the current page.


includes/, line 1171

function menu_tree_get_path($menu_name) {
  return menu_tree_set_path($menu_name);