You are here

public function ConfigFormBase::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

15 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 a ImageToolkitForm object.
MediaSettingsForm::__construct in core/modules/media/src/Form/MediaSettingsForm.php
MediaSettingsForm constructor.

... See full list

16 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 a 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 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);
}