function DatabaseDriver::getInstallTasks

Same name in other branches
  1. 10 core/lib/Drupal/Core/Extension/DatabaseDriver.php \Drupal\Core\Extension\DatabaseDriver::getInstallTasks()

Returns the install tasks object instance of this database driver.

Return value

\Drupal\Core\Database\Install\Tasks The install tasks object instance.

File

core/lib/Drupal/Core/Extension/DatabaseDriver.php, line 114

Class

DatabaseDriver
Defines a database driver extension object.

Namespace

Drupal\Core\Extension

Code

public function getInstallTasks() : Tasks {
    if (!isset($this->installTasks)) {
        $this->load();
        $installTasksClass = $this->getNamespace() . "\\Install\\Tasks";
        $this->installTasks = new $installTasksClass();
    }
    return $this->installTasks;
}

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