function ConfigFormBase::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::__construct()
  2. 8.9.x core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::__construct()
  3. 10 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.

\Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager: The typed config manager.

16 calls to ConfigFormBase::__construct()
AccountSettingsForm::__construct in core/modules/user/src/AccountSettingsForm.php
Constructs a \Drupal\user\AccountSettingsForm object.
BasicSettingsForm::__construct in core/modules/views_ui/src/Form/BasicSettingsForm.php
Constructs a \Drupal\views_ui\Form\BasicSettingsForm object.
FileSystemForm::__construct in core/modules/system/src/Form/FileSystemForm.php
Constructs a FileSystemForm object.
ImageToolkitForm::__construct in core/modules/system/src/Form/ImageToolkitForm.php
Constructs an ImageToolkitForm object.
MediaSettingsForm::__construct in core/modules/media/src/Form/MediaSettingsForm.php
MediaSettingsForm constructor.

... See full list

17 methods override ConfigFormBase::__construct()
AccountSettingsForm::__construct in core/modules/user/src/AccountSettingsForm.php
Constructs a \Drupal\user\AccountSettingsForm object.
BasicSettingsForm::__construct in core/modules/views_ui/src/Form/BasicSettingsForm.php
Constructs a \Drupal\views_ui\Form\BasicSettingsForm object.
FileSystemForm::__construct in core/modules/system/src/Form/FileSystemForm.php
Constructs a FileSystemForm object.
ImageToolkitForm::__construct in core/modules/system/src/Form/ImageToolkitForm.php
Constructs an ImageToolkitForm object.
MediaSettingsForm::__construct in core/modules/media/src/Form/MediaSettingsForm.php
MediaSettingsForm constructor.

... See full list

File

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

Class

ConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\Core\Form

Code

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

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