function ConfigImportSubscriber::addUninstallValidator

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php \Drupal\Core\EventSubscriber\ConfigImportSubscriber::addUninstallValidator()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.