function DatabaseDriver::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Extension/DatabaseDriver.php \Drupal\Core\Extension\DatabaseDriver::__construct()

Constructs a new DatabaseDriver object.

Parameters

string $root: The app root.

\Drupal\Core\Extension\Extension $module: The module containing the database driver.

string $driverName: The database driver name.

\Drupal\Core\Extension\Extension[] $discoveredModules: The modules discovered in the installation.

Overrides Extension::__construct

File

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

Class

DatabaseDriver
Defines a database driver extension object.

Namespace

Drupal\Core\Extension

Code

public function __construct(string $root, Extension $module, string $driverName, array $discoveredModules) {
    $this->root = $root;
    $this->type = 'database_driver';
}

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