You are here

protected function Tasks::isConnectionActive in Drupal 10

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

1 call to Tasks::isConnectionActive()
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 381

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

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