You are here

final public static function Database::getConnection in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/Database/Database.php \Drupal\Core\Database\Database::getConnection()

Return value

\Drupal\Core\Database\Connection

File

lib/Drupal/Core/Database/Database.php, line 25
Contains \Drupal\Core\Database\Database.

Class

Database

Namespace

Drupal\Core\Database

Code

public static final function getConnection($target = 'default', $key = NULL) {
  return new Connection(BaseDatabase::getConnection($target, $key));
}