function DatabaseDriverUninstallValidator::__construct

Same name and namespace in other branches
  1. 11.x 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()
  3. 10 core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\Extension\DatabaseDriverUninstallValidator::__construct()
  4. 9 core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\ProxyClass\Extension\DatabaseDriverUninstallValidator::__construct()
  5. 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 $moduleExtensionList: The module extension list.

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

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

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

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