You are here

public function ModuleInstaller::validateUninstall in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Extension/ModuleInstaller.php \Drupal\Core\Extension\ModuleInstaller::validateUninstall()
  2. 10 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php \Drupal\Core\ProxyClass\Extension\ModuleInstaller::validateUninstall()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php \Drupal\Core\ProxyClass\Extension\ModuleInstaller::validateUninstall()
  2. 9 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php \Drupal\Core\ProxyClass\Extension\ModuleInstaller::validateUninstall()

Determines whether a list of modules can be uninstalled.

Parameters

string[] $module_list: An array of module names.

Return value

string[] An array of reasons the module can not be uninstalled, empty if it can.

Overrides ModuleInstallerInterface::validateUninstall

File

core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php, line 97

Class

ModuleInstaller
Provides a proxy class for \Drupal\Core\Extension\ModuleInstaller.

Namespace

Drupal\Core\ProxyClass\Extension

Code

public function validateUninstall(array $module_list) {
  return $this
    ->lazyLoadItself()
    ->validateUninstall($module_list);
}