W3cubDocs

/Drupal 8

public function ModuleInstallerInterface::validateUninstall

public ModuleInstallerInterface::validateUninstall(array $module_list)

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.

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

public function validateUninstall(array $module_list);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ModuleInstallerInterface.php/function/ModuleInstallerInterface::validateUninstall/8.1.x