function ModulesUninstallConfirmForm::create

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

Overrides FormBase::create

File

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

Class

ModulesUninstallConfirmForm
Builds a confirmation form to uninstall selected modules.

Namespace

Drupal\system\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('module_installer'), $container->get('keyvalue.expirable')
        ->get('modules_uninstall'), $container->get('config.manager'), $container->get('entity_type.manager'), $container->get('extension.list.module'), $container->getParameter('install_profile'));
}

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