final public static function Database::getConnection in Service Container 7
Same name and namespace in other branches
- 7.2 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
Namespace
Drupal\Core\DatabaseCode
public static final function getConnection($target = 'default', $key = NULL) {
return new Connection(BaseDatabase::getConnection($target, $key));
}