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();
}
doc_Drupal
2016-10-29 09:27:39
Comments
Leave a Comment

Please login to continue.