You are here

public static function DbHandler::getDatabases in DB Maintenance 8

Same name and namespace in other branches
  1. 2.0.x src/Module/Db/DbHandler.php \Drupal\db_maintenance\Module\Db\DbHandler::getDatabases()

Gets the list of all databases.

Use result of this function instead of global $databases.

2 calls to DbHandler::getDatabases()
DbHandler::optimizeTables in src/Module/Db/DbHandler.php
Performs the maintenance.
DbMaintenanceAdminSettings::buildForm in src/Form/DbMaintenanceAdminSettings.php
Form constructor.

File

src/Module/Db/DbHandler.php, line 110
DbHandler class.

Class

DbHandler
DbHandler class.

Namespace

Drupal\db_maintenance\Module\Db

Code

public static function getDatabases() {
  $dbs = Database::getAllConnectionInfo();
  return $dbs;
}