public function UpdateModuleHandler::disable

Disables a given set of modules.

Parameters

$module_list: An array of module names.

$disable_dependents: If TRUE, dependent modules will automatically be added and disabled in the correct order. This incurs a significant performance cost, so use FALSE if you know $module_list is already complete and in the correct order.

Overrides ModuleHandler::disable

File

drupal/core/lib/Drupal/Core/Extension/UpdateModuleHandler.php, line 133
Contains \Drupal\Core\Extension\UpdateModuleHandler.

Class

UpdateModuleHandler
Deals with module enables and throws exception if hooks fired during updates.

Namespace

Drupal\Core\Extension

Code

public function disable($module_list, $disable_dependents = TRUE) {
  throw new \LogicException('Disabling modules is not supported during updates');
}