MenuTreeStorageInterface::loadByProperties

public MenuTreeStorageInterface::loadByProperties(array $properties) Loads multiple plugin definitions from the storage based on properties. Parameters array $properties: The properties to filter by. Return value array An array of menu link definition arrays. Throws \InvalidArgumentException Thrown if an invalid property name is specified in $properties. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 74 Class MenuTreeStorageInterface Defines an interface for storing a

MenuTreeStorageInterface::loadAllChildren

public MenuTreeStorageInterface::loadAllChildren($id, $max_relative_depth = NULL) Loads all the enabled menu links that are below the given ID. The returned links are not ordered, and visible children will be included even if they have parent that is not enabled or ancestor so would not normally appear in a rendered tree. Parameters string $id: The parent menu link ID. int $max_relative_depth: The maximum relative depth of the children relative to the passed parent. Return value array An arra

MenuTreeStorageInterface::load

public MenuTreeStorageInterface::load($id) Loads a menu link plugin definition from the storage. Parameters string $id: The menu link plugin ID. Return value array|false The plugin definition, or FALSE if no definition was found for the ID. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 47 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link IDs. Namespace Drupal\Core\Menu Code public function load($id);

MenuTreeStorageInterface::getSubtreeHeight

public MenuTreeStorageInterface::getSubtreeHeight($id) Finds the height of a subtree rooted by the given ID. Parameters string $id: The ID of an item in the storage. Return value 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. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 242 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link IDs. Namespace D

MenuTreeStorageInterface::getRootPathIds

public MenuTreeStorageInterface::getRootPathIds($id) Returns all the IDs that represent the path to the root of the tree. array( 'p1' => 1, 'p2' => 6, 'p3' => 8, 'p4' => 0, 'p5' => 0, 'p6' => 0, 'p7' => 0, 'p8' => 0, 'p9' => 0 ) Parameters string $id: A menu link ID. Return value array An associative array of IDs with keys equal to values that represents the path from the given ID to the root of the tree. If $id is an ID that

MenuTreeStorageInterface::getMenuNames

public MenuTreeStorageInterface::getMenuNames() Returns the used menu names in the tree storage. Return value array The menu names. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 261 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link IDs. Namespace Drupal\Core\Menu Code public function getMenuNames();

MenuTreeStorageInterface::getExpanded

public MenuTreeStorageInterface::getExpanded($menu_name, array $parents) Finds expanded links in a menu given a set of possible parents. Parameters string $menu_name: The menu name. array $parents: One or more parent IDs to match. Return value array The menu link IDs that are flagged as expanded in this menu. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 230 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link IDs. Namespa

MenuTreeStorageInterface::getAllChildIds

public MenuTreeStorageInterface::getAllChildIds($id) Loads all the IDs for menu links that are below the given ID. Parameters string $id: The parent menu link ID. Return value array An unordered array of plugin IDs corresponding to all children. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 171 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link IDs. Namespace Drupal\Core\Menu Code public function getAllChildIds($id);

MenuTreeStorageInterface::delete

public MenuTreeStorageInterface::delete($id) Deletes a menu link definition from the storage. Parameters string $id: The menu link plugin ID. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 117 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link IDs. Namespace Drupal\Core\Menu Code public function delete($id);

MenuTreeStorageInterface::countMenuLinks

public MenuTreeStorageInterface::countMenuLinks($menu_name = NULL) Counts the total number of menu links in one menu or all menus. Parameters string $menu_name: (optional) The menu name to count by. Defaults to all menus. Return value int The number of menu links in the named menu, or in all menus if the menu name is NULL. File core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php, line 273 Class MenuTreeStorageInterface Defines an interface for storing a menu tree containing menu link