function ConfigImportSubscriber::addUninstallValidator
Same name in other branches
- 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\EventSubscriberCode
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.