You are here

public function ModuleInstaller::validateUninstall in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Extension/ModuleInstaller.php \Drupal\Core\Extension\ModuleInstaller::validateUninstall()
  2. 8 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php \Drupal\Core\ProxyClass\Extension\ModuleInstaller::validateUninstall()
Same name and namespace in other branches
  1. 8.0 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 101
Contains \Drupal\Core\ProxyClass\Extension\ModuleInstaller.

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);
}