function Tasks::getConnection

Same name and namespace in other branches
  1. 9 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.

1 call to Tasks::getConnection()
Tasks::name in core/modules/mysql/src/Driver/Database/mysql/Install/Tasks.php
Returns the human-readable name of the driver.

File

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

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.