function Tasks::hasPdoDriver
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::hasPdoDriver()
- 8.9.x core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::hasPdoDriver()
- 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::hasPdoDriver()
Ensure the PDO driver is supported by the version of PHP in use.
Return value
bool TRUE if the PDO driver is supported, otherwise FALSE.
1 call to Tasks::hasPdoDriver()
- Tasks::installable in core/
lib/ Drupal/ Core/ Database/ Install/ Tasks.php - Checks whether Drupal is installable on the database.
File
-
core/
lib/ Drupal/ Core/ Database/ Install/ Tasks.php, line 95
Class
- Tasks
- Database installer structure.
Namespace
Drupal\Core\Database\InstallCode
protected function hasPdoDriver() {
return in_array($this->pdoDriver, \PDO::getAvailableDrivers());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.