function DatabaseDriverList::get

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

Overrides ExtensionList::get

File

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

Class

DatabaseDriverList
Provides a list of available database drivers.

Namespace

Drupal\Core\Extension

Code

public function get($extension_name) {
    if (!str_contains($extension_name, "\\")) {
        @trigger_error("Passing a database driver name '{$extension_name}' to " . __METHOD__ . '() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Pass a database driver namespace instead. See https://www.drupal.org/node/3258175', E_USER_DEPRECATED);
        return $this->getFromDriverName($extension_name);
    }
    return parent::get($extension_name);
}

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