You are here

public function ModuleInstaller::addUninstallValidator in Drupal 10

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

File

core/lib/Drupal/Core/Extension/ModuleInstaller.php, line 99

Class

ModuleInstaller
Default implementation of the module installer.

Namespace

Drupal\Core\Extension

Code

public function addUninstallValidator(ModuleUninstallValidatorInterface $uninstall_validator) {
  $this->uninstallValidators[] = $uninstall_validator;
}