function Tasks::getConnection

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::getConnection()
  2. 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::getConnection()

Returns the database connection.

Return value

\Drupal\Core\Database\Connection The database connection.

File

core/lib/Drupal/Core/Database/Install/Tasks.php, line 389

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected function getConnection() {
  return Database::getConnection();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.