You are here

protected function MenuTreeStorage::loadFull in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::loadFull()

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.

8 calls to MenuTreeStorage::loadFull()
MenuTreeStorage::delete in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Deletes a menu link definition from the storage.
MenuTreeStorage::doSave in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Saves a link without clearing caches.
MenuTreeStorage::findParent in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Loads the parent definition if it exists.
MenuTreeStorage::getAllChildIds in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Loads all the IDs for menu links that are below the given ID.
MenuTreeStorage::getSubtreeHeight in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Finds the height of a subtree rooted by the given ID.

... See full list

File

core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 732
Contains \Drupal\Core\Menu\MenuTreeStorage.

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

protected function loadFull($id) {
  $loaded = $this
    ->loadFullMultiple(array(
    $id,
  ));
  return isset($loaded[$id]) ? $loaded[$id] : array();
}