function ConfigFormBase::create

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::create()
  2. 10 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::create()
  3. 8.9.x core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::create()
4 methods override ConfigFormBase::create()
MediaSettingsForm::create in core/modules/media/src/Form/MediaSettingsForm.php
Instantiates a new instance of this class.
NegotiationBrowserForm::create in core/modules/language/src/Form/NegotiationBrowserForm.php
Instantiates a new instance of this class.
NegotiationConfigureForm::create in core/modules/language/src/Form/NegotiationConfigureForm.php
Instantiates a new instance of this class.
NegotiationUrlForm::create in core/modules/language/src/Form/NegotiationUrlForm.php
Instantiates a new instance of this class.

File

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

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'));
}

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