1 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.

Return value

array|NULL: The array of connection info if the $key is found. NULL if it is missing.

File

core/includes/database/database.inc, line 1696
Core systems for the database layer.

Class

Database
Primary front-controller for the database system.

Code

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

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