public function MongodbMenuTreeStorage::getAllChildIds in MongoDB 8
Loads all the IDs for menu links that are below the given ID.
Parameters
string $id: The parent menu link ID.
Return value
array An unordered array of plugin IDs corresponding to all children.
Overrides MenuTreeStorage::getAllChildIds
File
- src/
MongodbMenuTreeStorage.php, line 406 - Contains \Drupal\mongodb\MongodbMenuTreeStorage .
Class
Namespace
Drupal\mongodbCode
public function getAllChildIds($id) {
$root = $this
->loadFull($id);
if (!$root) {
return array();
}
return $this
->getIds($this
->getChildrenQuery($root));
}