You are here

public function Tasks::installable in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::installable()
  2. 9 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);
}