1, * 'p2' => 6, * 'p3' => 8, * 'p4' => 0, * 'p5' => 0, * 'p6' => 0, * 'p7' => 0, * 'p8' => 0, * 'p9' => 0 * ) * @endcode */ public function getRootPathIds($id); /** * Finds expanded links in a menu given a set of possible parents. * * @param string $menu_name * The menu name. * @param array $parents * One or more parent IDs to match. * * @return array * The menu link IDs that are flagged as expanded in this menu. */ public function getExpanded($menu_name, array $parents); /** * Finds the height of a subtree rooted by the given ID. * * @param string $id * The ID of an item in the storage. * * @return int * Returns the height of the subtree. This will be at least 1 if the ID * exists, or 0 if the ID does not exist in the storage. */ public function getSubtreeHeight($id); /** * Determines whether a specific menu name is used in the tree. * * @param string $menu_name * The menu name. * * @return bool * Returns TRUE if the given menu name is used, otherwise FALSE. */ public function menuNameInUse($menu_name); /** * Returns the used menu names in the tree storage. * * @return array * The menu names. */ public function getMenuNames(); /** * Counts the total number of menu links in one menu or all menus. * * @param string $menu_name * (optional) The menu name to count by. Defaults to all menus. * * @return int * The number of menu links in the named menu, or in all menus if the menu * name is NULL. */ public function countMenuLinks($menu_name = NULL); }