You are here

public function Drupal7Backend::menu_getIdentifiers in Configuration Management 7.3

Overrides BackendInterface::menu_getIdentifiers

File

src/Backends/Drupal7Backend.php, line 244

Class

Drupal7Backend

Namespace

Configuration\Backends

Code

public function menu_getIdentifiers() {
  $menus = db_query("SELECT menu_name, title FROM {menu_custom}")
    ->fetchAll();
  $identifiers = array();
  foreach ($menus as $menu) {
    $identifiers[str_replace('-', '_', $menu->menu_name)] = $menu->title;
  }
  return $identifiers;
}