function ModulesUninstallForm::__construct
Constructs a ModulesUninstallForm object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer.
\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $key_value_expirable: The key value expirable factory.
\Drupal\Core\Extension\ModuleExtensionList $extension_list_module: The module extension list.
\Drupal\Core\Update\UpdateHookRegistry|null $versioning_update_registry: Versioning update registry service.
File
- 
              core/modules/ system/ src/ Form/ ModulesUninstallForm.php, line 86 
Class
- ModulesUninstallForm
- Provides a form for uninstalling modules.
Namespace
Drupal\system\FormCode
public function __construct(ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, KeyValueStoreExpirableInterface $key_value_expirable, ModuleExtensionList $extension_list_module, UpdateHookRegistry $versioning_update_registry = NULL) {
  $this->moduleExtensionList = $extension_list_module;
  $this->moduleHandler = $module_handler;
  $this->moduleInstaller = $module_installer;
  $this->keyValueExpirable = $key_value_expirable;
  if ($versioning_update_registry === NULL) {
    @trigger_error('The update.update_hook_registry service must be passed to ' . __NAMESPACE__ . '\\ModulesUninstallForm::__construct(). It was added in drupal:9.3.0 and will be required before drupal:10.0.0.', E_USER_DEPRECATED);
    $versioning_update_registry = \Drupal::service('update.update_hook_registry');
  }
  $this->updateRegistry = $versioning_update_registry;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
