function 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
15 calls to Database::getConnectionInfo()
- CredentialForm::validateForm in core/
modules/ migrate_drupal_ui/ src/ Form/ CredentialForm.php - Form validation handler.
- Database::getConnectionInfoAsUrl in core/
lib/ Drupal/ Core/ Database/ Database.php - Gets database connection info as a URL.
- DbCommandBase::getDatabaseConnection in core/
lib/ Drupal/ Core/ Command/ DbCommandBase.php - Parse input options decide on a database.
- DbLog::log in core/
modules/ dblog/ src/ Logger/ DbLog.php - Logs with an arbitrary level.
- InstallCommand::isDrupalInstalled in core/
lib/ Drupal/ Core/ Command/ InstallCommand.php - Returns whether there is already an existing Drupal installation.
File
-
core/
lib/ Drupal/ Core/ Database/ Database.php, line 307
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];
}
}