function ModulesUninstallConfirmForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/src/Form/ModulesUninstallConfirmForm.php \Drupal\system\Form\ModulesUninstallConfirmForm::__construct()
  2. 10 core/modules/system/src/Form/ModulesUninstallConfirmForm.php \Drupal\system\Form\ModulesUninstallConfirmForm::__construct()
  3. 9 core/modules/system/src/Form/ModulesUninstallConfirmForm.php \Drupal\system\Form\ModulesUninstallConfirmForm::__construct()
  4. 8.9.x core/modules/system/src/Form/ModulesUninstallConfirmForm.php \Drupal\system\Form\ModulesUninstallConfirmForm::__construct()

Constructs a ModulesUninstallConfirmForm object.

Parameters

\Drupal\Core\Extension\ModuleInstallerInterface $moduleInstaller: The module installer.

\Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface $keyValueExpirable: The key value expirable factory.

\Drupal\Core\Config\ConfigManagerInterface $configManager: The configuration manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Extension\ModuleExtensionList $moduleExtensionList: The module extension list.

string|false|null $installProfile: The install profile.

File

core/modules/system/src/Form/ModulesUninstallConfirmForm.php, line 47

Class

ModulesUninstallConfirmForm
Builds a confirmation form to uninstall selected modules.

Namespace

Drupal\system\Form

Code

public function __construct(protected ModuleInstallerInterface $moduleInstaller, protected KeyValueStoreExpirableInterface $keyValueExpirable, protected ConfigManagerInterface $configManager, protected EntityTypeManagerInterface $entityTypeManager, protected ModuleExtensionList $moduleExtensionList, protected string|false|null $installProfile = NULL) {
  $this->installProfile ??= \Drupal::installProfile();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.