function Database::getAllConnectionInfo

Gets connection information for all available databases.

Return value

array An associative array of database information for all available database, keyed by the database name. Defaults to an empty array.

4 calls to Database::getAllConnectionInfo()
CredentialForm::buildForm in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Form constructor.
KernelTestBase::bootEnvironment in core/tests/Drupal/KernelTests/KernelTestBase.php
Bootstraps a basic test environment.
KernelTestBase::tearDownCloseDatabaseConnection in core/tests/Drupal/KernelTests/KernelTestBase.php
Additional tear down method to close the connection at the end.
UpdatePathTestTrait::runUpdates in core/tests/Drupal/Tests/UpdatePathTestTrait.php
Helper function to run pending database updates.

File

core/lib/Drupal/Core/Database/Database.php, line 324

Class

Database
Primary front-controller for the database system.

Namespace

Drupal\Core\Database

Code

final public static function getAllConnectionInfo() {
  return self::$databaseInfo;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.