MenuTreeStorage::doCollectRoutesAndDefinitions

protected MenuTreeStorage::doCollectRoutesAndDefinitions(array $tree, array &$definitions) Collects all the route names and definitions. Parameters array $tree: A menu link tree from MenuTreeStorage::doBuildTreeData() array $definitions: The collected definitions which are populated by reference. Return value array The collected route names. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 988 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace

MenuTreeStorage::doBuildTreeData

protected MenuTreeStorage::doBuildTreeData(array $links, array $parents = array(), $depth = 1) Prepares the data for calling $this->treeDataRecursive(). File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1083 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function doBuildTreeData(array $links, array $parents = array(), $depth = 1) { // Reverse the array so we can use the more efficient array_pop() function.

MenuTreeStorage::delete

public MenuTreeStorage::delete($id) Deletes a menu link definition from the storage. Parameters string $id: The menu link plugin ID. Overrides MenuTreeStorageInterface::delete File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 398 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code public function delete($id) { // Children get re-attached to the menu link's parent. $item = $this->loadFull($id); // It's possible the link

MenuTreeStorage::definitionFields

protected MenuTreeStorage::definitionFields() Determines fields that are part of the plugin definition. Return value array The list of the subset of fields that are part of the plugin definition. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1194 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function definitionFields() { return $this->definitionFields; }

MenuTreeStorage::countMenuLinks

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

MenuTreeStorage::collectRoutesAndDefinitions

protected MenuTreeStorage::collectRoutesAndDefinitions(array $tree, array &$definitions) Traverses the menu tree and collects all the route names and definitions. Parameters array $tree: The menu tree you wish to operate on. array $definitions: An array to accumulate definitions by reference. Return value array Array of route names, with all values being unique. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 973 Class MenuTreeStorage Provides a menu tree storage using the d

MenuTreeStorage::$table

The database table name. Type: string File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 51 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $table;

MenuTreeStorage::$serializedFields

List of serialized fields. Type: array File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 74 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $serializedFields;

MenuTreeStorage::$options

Additional database connection options to use in queries. Type: array File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 58 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $options = array();

MenuTreeStorage::$menuCacheBackend

Cache backend instance for the extracted tree data. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 37 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected $menuCacheBackend;