function SiteConfigureForm::create

Same name in other branches
  1. 9 core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php \Drupal\Core\Installer\Form\SiteConfigureForm::create()
  2. 8.9.x core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php \Drupal\Core\Installer\Form\SiteConfigureForm::create()
  3. 10 core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php \Drupal\Core\Installer\Form\SiteConfigureForm::create()

Overrides ConfigFormBase::create

File

core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 50

Class

SiteConfigureForm
Provides the site configuration form.

Namespace

Drupal\Core\Installer\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->getParameter('app.root'), $container->getParameter('site.path'), $container->get('entity_type.manager'), $container->get('module_installer'), $container->get('user.name_validator'), $container->getParameter('security.enable_super_user') ?? TRUE);
}

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