MenuTreeStorage::getMenuNames

public MenuTreeStorage::getMenuNames()

Returns the used menu names in the tree storage.

Return value

array The menu names.

Overrides MenuTreeStorageInterface::getMenuNames

File

core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1030

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

public function getMenuNames() {
  $query = $this->connection->select($this->table, $this->options);
  $query->addField($this->table, 'menu_name');
  $query->distinct();
  return $this->safeExecuteSelect($query)->fetchAllKeyed(0, 0);
}
doc_Drupal
2016-10-29 09:27:37
Comments
Leave a Comment

Please login to continue.