public MenuTreeStorage::load($id)
Loads a menu link plugin definition from the storage.
string $id: The menu link plugin ID.
array|FALSE The plugin definition, or FALSE if no definition was found for the ID.
Overrides MenuTreeStorageInterface::load
public function load($id) { if (isset($this->definitions[$id])) { return $this->definitions[$id]; } $loaded = $this->loadMultiple(array($id)); return isset($loaded[$id]) ? $loaded[$id] : FALSE; }
© 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::load/8.1.x