function DatabaseDriverUninstallValidator::__construct
Same name in this branch
- 10 core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\ProxyClass\Extension\DatabaseDriverUninstallValidator::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\ProxyClass\Extension\DatabaseDriverUninstallValidator::__construct()
- 9 core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\Extension\DatabaseDriverUninstallValidator::__construct()
- 11.x core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php \Drupal\Core\ProxyClass\Extension\DatabaseDriverUninstallValidator::__construct()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.