function ConfigFormBase::create

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

Overrides FormBase::create

18 methods override ConfigFormBase::create()
AccountSettingsForm::create in core/modules/user/src/AccountSettingsForm.php
Instantiates a new instance of this class.
BasicSettingsForm::create in core/modules/views_ui/src/Form/BasicSettingsForm.php
Instantiates a new instance of this class.
FileSystemForm::create in core/modules/system/src/Form/FileSystemForm.php
Instantiates a new instance of this class.
FormTestControllerObject::create in core/modules/system/tests/modules/form_test/src/FormTestControllerObject.php
Instantiates a new instance of this class.
ImageToolkitForm::create in core/modules/system/src/Form/ImageToolkitForm.php
Instantiates a new instance of this class.

... See full list

File

core/lib/Drupal/Core/Form/ConfigFormBase.php, line 54

Class

ConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\Core\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('config.factory'), $container->get('config.typed'));
}

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