function ModulesListConfirmForm::create

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

Overrides FormBase::create

1 method overrides ModulesListConfirmForm::create()
ModulesListNonStableConfirmForm::create in core/modules/system/src/Form/ModulesListNonStableConfirmForm.php
Instantiates a new instance of this class.

File

core/modules/system/src/Form/ModulesListConfirmForm.php, line 71

Class

ModulesListConfirmForm
Builds a confirmation form for enabling modules with dependencies.

Namespace

Drupal\system\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('module_handler'), $container->get('module_installer'), $container->get('keyvalue.expirable')
        ->get('module_list'));
}

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