function ConfigFormBase::__construct

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

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

4 methods override ConfigFormBase::__construct()
MediaSettingsForm::__construct in core/modules/media/src/Form/MediaSettingsForm.php
MediaSettingsForm constructor.
NegotiationBrowserForm::__construct in core/modules/language/src/Form/NegotiationBrowserForm.php
Constructs a \Drupal\system\ConfigFormBase object.
NegotiationConfigureForm::__construct in core/modules/language/src/Form/NegotiationConfigureForm.php
Constructs a NegotiationConfigureForm object.
NegotiationUrlForm::__construct in core/modules/language/src/Form/NegotiationUrlForm.php
Constructs a new NegotiationUrlForm object.

File

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

Class

ConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\Core\Form

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->setConfigFactory($config_factory);
}

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