final public static function Database::getConnectionInfo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::getConnectionInfo()
Gets information on the specified database connection.
Parameters
string $key: (optional) The connection key for which to return information.
Return value
array|null
38 calls to Database::getConnectionInfo()
- BrowserTestBase::changeDatabasePrefix in core/
modules/ simpletest/ src/ BrowserTestBase.php - Changes the database connection to the prefixed one.
- BrowserTestBase::cleanupEnvironment in core/
modules/ simpletest/ src/ BrowserTestBase.php - Clean up the Simpletest environment.
- BrowserTestBase::installParameters in core/
modules/ simpletest/ src/ BrowserTestBase.php - Returns the parameters that will be used when Simpletest installs Drupal.
- ConnectionTest::testConnectionOptions in core/
modules/ system/ src/ Tests/ Database/ ConnectionTest.php - Tests the connection options of the active database.
- ConnectionTest::testConnectionRouting in core/
modules/ system/ src/ Tests/ Database/ ConnectionTest.php - Tests that connections return appropriate connection objects.
File
- core/
lib/ Drupal/ Core/ Database/ Database.php, line 270 - Contains \Drupal\Core\Database\Database.
Class
- Database
- Primary front-controller for the database system.
Namespace
Drupal\Core\DatabaseCode
public static final function getConnectionInfo($key = 'default') {
if (!empty(self::$databaseInfo[$key])) {
return self::$databaseInfo[$key];
}
}