You are here

public function ConfigImportSubscriber::addUninstallValidator in Drupal 10

Adds a module uninstall validator.

Parameters

\Drupal\Core\Extension\ModuleUninstallValidatorInterface $uninstall_validator: The uninstall validator to add.

File

core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php, line 68

Class

ConfigImportSubscriber
Config import subscriber for config import events.

Namespace

Drupal\Core\EventSubscriber

Code

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