function ModuleInstallerInterface::addUninstallValidator
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php \Drupal\Core\Extension\ModuleInstallerInterface::addUninstallValidator()
- 8.9.x core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php \Drupal\Core\Extension\ModuleInstallerInterface::addUninstallValidator()
- 10 core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php \Drupal\Core\Extension\ModuleInstallerInterface::addUninstallValidator()
Adds a module uninstall validator.
Parameters
\Drupal\Core\Extension\ModuleUninstallValidatorInterface $uninstall_validator: The uninstall validator to add.
Deprecated
in drupal:11.1.0 and is removed from drupal:12.0.0. Inject the uninstall validators into the constructor instead.
See also
https://www.drupal.org/node/3432595
2 methods override ModuleInstallerInterface::addUninstallValidator()
- ModuleInstaller::addUninstallValidator in core/
lib/ Drupal/ Core/ ProxyClass/ Extension/ ModuleInstaller.php - Adds a module uninstall validator.
- ModuleInstaller::addUninstallValidator in core/
lib/ Drupal/ Core/ Extension/ ModuleInstaller.php - Adds a module uninstall validator.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleInstallerInterface.php, line 86
Class
- ModuleInstallerInterface
- Provides the installation of modules with creating the db schema and more.
Namespace
Drupal\Core\ExtensionCode
public function addUninstallValidator(ModuleUninstallValidatorInterface $uninstall_validator);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.