You are here

public function ModuleInstallerInterface::addUninstallValidator in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php \Drupal\Core\Extension\ModuleInstallerInterface::addUninstallValidator()
  2. 9 core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php \Drupal\Core\Extension\ModuleInstallerInterface::addUninstallValidator()

Adds a module uninstall validator.

Parameters

\Drupal\Core\Extension\ModuleUninstallValidatorInterface $uninstall_validator: The uninstall validator to add.

1 method overrides ModuleInstallerInterface::addUninstallValidator()
ModuleInstaller::addUninstallValidator in core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php
Adds a module uninstall validator.

File

core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php, line 78

Class

ModuleInstallerInterface
Provides the installation of modules with creating the db schema and more.

Namespace

Drupal\Core\Extension

Code

public function addUninstallValidator(ModuleUninstallValidatorInterface $uninstall_validator);