public function DatabaseDriverUninstallValidator::__construct in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\Extension\DatabaseDriverUninstallValidator::__construct()
- 10 core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\ProxyClass\Extension\DatabaseDriverUninstallValidator::__construct()
Same name and namespace in other branches
- 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\ExtensionCode
public function __construct(TranslationInterface $string_translation, ModuleExtensionList $extension_list_module, Connection $connection) {
$this->stringTranslation = $string_translation;
$this->moduleExtensionList = $extension_list_module;
$this->connection = $connection;
}