function ModuleInstallerInterface::getModulesToUninstall
Determines the full set of modules to uninstall for the given list.
Parameters
string[] $module_list: An array of module machine names.
bool $uninstall_dependents: (optional) If TRUE, installed modules that depend on the given modules are added to the returned list. If FALSE, only the given modules that are currently installed are returned.
Return value
string[] The machine names of the installed modules to uninstall, including any dependents, ordered the way ::uninstall() would uninstall them. Modules that are not installed are omitted.
Throws
\Drupal\Core\Extension\Exception\UnknownExtensionException Thrown when a requested module, or a dependent of one, does not exist.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleInstallerInterface.php, line 117
Class
- ModuleInstallerInterface
- Provides the installation of modules with creating the db schema and more.
Namespace
Drupal\Core\ExtensionCode
public function getModulesToUninstall(array $module_list, bool $uninstall_dependents = TRUE) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.