ModuleInstaller::addUninstallValidator

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;
}
doc_Drupal
2016-10-29 09:29:24
Comments
Leave a Comment

Please login to continue.