1.20.x install.inc protected DatabaseTasks::hasPdoDriver()

Ensure the PDO driver is supported by the version of PHP in use.

File

includes/install.inc, line 420
API functions for installing modules and themes.

Class

DatabaseTasks
Database installer structure.

Code

protected function hasPdoDriver() {
  return in_array($this->pdoDriver, PDO::getAvailableDrivers());
}