function Tasks::isConnectionActive

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

Determines if there is an active connection.

Return value

bool TRUE if there is at least one database connection established, FALSE otherwise.

File

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

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected function isConnectionActive() {
  return Database::isActiveConnection();
}

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