public ModuleInstaller::addUninstallValidator(ModuleUninstallValidatorInterface $uninstall_validator)
Adds module a uninstall validator.
Parameters
\Drupal\Core\Extension\ModuleUninstallValidatorInterface $uninstall_validator: The uninstall validator to add.
Overrides ModuleInstallerInterface::addUninstallValidator
File
- core/lib/Drupal/Core/Extension/ModuleInstaller.php, line 70
Class
- ModuleInstaller
- Default implementation of the module installer.
Namespace
Drupal\Core\Extension
Code
public function addUninstallValidator(ModuleUninstallValidatorInterface $uninstall_validator) { $this->uninstallValidators[] = $uninstall_validator; }
Please login to continue.