function MenuTreeStorage::load
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::load()
- 8.9.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::load()
- 11.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::load()
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php, line 706
Class
- MenuTreeStorage
- Provides a menu tree storage using the database.
Namespace
Drupal\Core\MenuCode
public function load($id) {
if (isset($this->definitions[$id])) {
return $this->definitions[$id];
}
$loaded = $this->loadMultiple([
$id,
]);
return $loaded[$id] ?? FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.