Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Tasks.php

function 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\Install

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal