MenuTreeStorage::loadSubtreeData

public MenuTreeStorage::loadSubtreeData($id, $max_relative_depth = NULL) Loads a subtree rooted by the given ID. The returned links are structured like those from loadTreeData(). Parameters string $id: The menu link plugin ID. int $max_relative_depth: (optional) The maximum depth of child menu links relative to the passed in. Defaults to NULL, in which case the full subtree will be returned. Return value array An array with 2 elements: subtree: A fully built menu tree element or FALSE. rout

MenuTreeStorage::loadMultiple

public MenuTreeStorage::loadMultiple(array $ids) Loads multiple plugin definitions from the storage. Parameters array $ids: An array of plugin IDs. Return value array An array of plugin definition arrays keyed by plugin ID, which are the actual definitions after the loadMultiple() including all those plugins from $ids. Overrides MenuTreeStorageInterface::loadMultiple File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 692 Class MenuTreeStorage Provides a menu tree storage using the

MenuTreeStorage::loadLinks

protected MenuTreeStorage::loadLinks($menu_name, MenuTreeParameters $parameters) Loads links in the given menu, according to the given tree parameters. Parameters string $menu_name: A menu name. \Drupal\Core\Menu\MenuTreeParameters $parameters: The parameters to determine which menu links to be loaded into a tree. This method will set the absolute minimum depth, which is used in MenuTreeStorage::doBuildTreeData(). Return value array A flat array of menu links that are part of the menu. Each a

MenuTreeStorage::loadFullMultiple

protected MenuTreeStorage::loadFullMultiple(array $ids) Loads all table fields for multiple menu link definitions by ID. Parameters array $ids: The IDs to load. Return value array The loaded menu link definitions. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 741 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function loadFullMultiple(array $ids) { $query = $this->connection->select($this->table,

MenuTreeStorage::loadFull

protected MenuTreeStorage::loadFull($id) Loads all table fields, not just those that are in the plugin definition. Parameters string $id: The menu link ID. Return value array The loaded menu link definition or an empty array if not be found. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 727 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function loadFull($id) { $loaded = $this->loadFullMultiple(array($i

MenuTreeStorage::loadByRoute

public MenuTreeStorage::loadByRoute($route_name, array $route_parameters = array(), $menu_name = NULL) Loads multiple plugin definitions from the storage based on route. Parameters string $route_name: The route name. array $route_parameters: (optional) The route parameters. Defaults to an empty array. string $menu_name: (optional) Restricts the found links to just those in the named menu. Return value array An array of menu link definitions keyed by ID and ordered by depth. Overrides MenuTree

MenuTreeStorage::loadByProperties

public MenuTreeStorage::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. Overrides MenuTreeStorageInterface::loadByProperties File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 643 Class MenuTreeStorage Provide

MenuTreeStorage::loadAllChildren

public MenuTreeStorage::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 array of enab

MenuTreeStorage::load

public MenuTreeStorage::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. Overrides MenuTreeStorageInterface::load File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 710 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code public function load($id) { if (isset($this->d

MenuTreeStorage::getSubtreeHeight

public MenuTreeStorage::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. Overrides MenuTreeStorageInterface::getSubtreeHeight File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 422 Class MenuTreeStorage Provides a menu tree storage using the database. Namespac