function DatabaseDriverList::__construct

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

Constructs a new instance.

Parameters

string $root: The app root.

string $type: The extension type.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache.

Overrides ExtensionList::__construct

File

core/lib/Drupal/Core/Extension/DatabaseDriverList.php, line 42

Class

DatabaseDriverList
Provides a list of available database drivers.

Namespace

Drupal\Core\Extension

Code

public function __construct($root, $type, CacheBackendInterface $cache) {
    $this->root = $root;
    $this->type = $type;
    $this->cache = $cache;
}

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