You are here

public function DatabaseDriverUninstallValidator::__construct in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\Extension\DatabaseDriverUninstallValidator::__construct()
  2. 10 core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\ProxyClass\Extension\DatabaseDriverUninstallValidator::__construct()
Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\Extension\DatabaseDriverUninstallValidator::__construct()

Constructs a new DatabaseDriverUninstallValidator.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Core\Extension\ModuleExtensionList $extension_list_module: The module extension list.

\Drupal\Core\Database\Connection $connection: The database connection.

File

core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php, line 41

Class

DatabaseDriverUninstallValidator
Ensures installed modules providing a database driver are not uninstalled.

Namespace

Drupal\Core\Extension

Code

public function __construct(TranslationInterface $string_translation, ModuleExtensionList $extension_list_module, Connection $connection) {
  $this->stringTranslation = $string_translation;
  $this->moduleExtensionList = $extension_list_module;
  $this->connection = $connection;
}