function MenuTreeStorage::loadFull
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::loadFull()
- 8.9.x core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::loadFull()
- 11.x 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.
7 calls to MenuTreeStorage::loadFull()
- MenuTreeStorage::delete in core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php - 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 - MenuTreeStorage::getSubtreeHeight in core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php - MenuTreeStorage::loadLinks in core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php - Loads links in the given menu, according to the given tree parameters.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php, line 723
Class
- MenuTreeStorage
- Provides a menu tree storage using the database.
Namespace
Drupal\Core\MenuCode
protected function loadFull($id) {
$loaded = $this->loadFullMultiple([
$id,
]);
return $loaded[$id] ?? [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.