You are here

final public static function Database::getAllConnectionInfo in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::getAllConnectionInfo()
  2. 9 core/lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::getAllConnectionInfo()

Gets connection information for all available databases.

Return value

array

3 calls to Database::getAllConnectionInfo()
KernelTestBase::bootEnvironment in core/tests/Drupal/KernelTests/KernelTestBase.php
Bootstraps a basic test environment.
KernelTestBase::tearDownCloseDatabaseConnection in core/tests/Drupal/KernelTests/KernelTestBase.php
@after
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 299

Class

Database
Primary front-controller for the database system.

Namespace

Drupal\Core\Database

Code

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