function Tasks::installable

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

Checks whether Drupal is installable on the database.

Return value

bool TRUE if Drupal can be installed on the database, otherwise FALSE.

File

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

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

public function installable() {
    return $this->hasPdoDriver() && empty($this->error);
}

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