public function MongodbMenuTreeStorage::getMenuNames in MongoDB 8
Returns the used menu names in the tree storage.
Return value
array The menu names.
Overrides MenuTreeStorage::getMenuNames
File
- src/
MongodbMenuTreeStorage.php, line 283 - Contains \Drupal\mongodb\MongodbMenuTreeStorage .
Class
Namespace
Drupal\mongodbCode
public function getMenuNames() {
$menu_names = $this
->mongoCollection()
->distinct('menu_name');
return array_combine($menu_names, $menu_names);
}