Database::getConnectionInfo

final public static Database::getConnectionInfo($key = 'default')

Gets information on the specified database connection.

Parameters

string $key: (optional) The connection key for which to return information.

Return value

array|null

File

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

Class

Database
Primary front-controller for the database system.

Namespace

Drupal\Core\Database

Code

final public static function getConnectionInfo($key = 'default') {
  if (!empty(self::$databaseInfo[$key])) {
    return self::$databaseInfo[$key];
  }
}
doc_Drupal
2016-10-29 08:59:31
Comments
Leave a Comment

Please login to continue.