public function ModuleInstaller::addUninstallValidator in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Extension/ModuleInstaller.php \Drupal\Core\Extension\ModuleInstaller::addUninstallValidator()
- 8 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php \Drupal\Core\ProxyClass\Extension\ModuleInstaller::addUninstallValidator()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php \Drupal\Core\ProxyClass\Extension\ModuleInstaller::addUninstallValidator()
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/ ProxyClass/ Extension/ ModuleInstaller.php, line 77 - Contains \Drupal\Core\ProxyClass\Extension\ModuleInstaller.
Class
- ModuleInstaller
- Provides a proxy class for \Drupal\Core\Extension\ModuleInstaller.
Namespace
Drupal\Core\ProxyClass\ExtensionCode
public function addUninstallValidator(\Drupal\Core\Extension\ModuleUninstallValidatorInterface $uninstall_validator) {
return $this
->lazyLoadItself()
->addUninstallValidator($uninstall_validator);
}