Skip navigation
Help

Database::getConnectionInfo

7 database.inc final public static Database::getConnectionInfo($key = 'default')

Gets information on the specified database connection.

Parameters

$connection: The connection key for which we want information.

11 calls to Database::getConnectionInfo()

File

drupal/includes/database/database.inc, line 1573
Core systems for the database layer.

Code

final public static function getConnectionInfo($key = 'default') {
  if (empty(self::$databaseInfo)) {
    self::parseConnectionInfo();
  }

  if (!empty(self::$databaseInfo[$key])) {
    return self::$databaseInfo[$key];
  }
}