You are here

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

MongodbMenuTreeStorage

Namespace

Drupal\mongodb

Code

public function getMenuNames() {
  $menu_names = $this
    ->mongoCollection()
    ->distinct('menu_name');
  return array_combine($menu_names, $menu_names);
}