protected function 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($id));
  return isset($loaded[$id]) ? $loaded[$id] : array();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuTreeStorage.php/function/MenuTreeStorage::loadFull/8.1.x