Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tasks.php

function 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();
}
RSS feed
Powered by Drupal