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. 11.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.

\Drupal\Core\Config\TypedConfigManagerInterface|null $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 41

Class

ConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\Core\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, $typedConfigManager = NULL) {
    $this->setConfigFactory($config_factory);
    if (!$typedConfigManager instanceof TypedConfigManagerInterface) {
        $type = get_debug_type($typedConfigManager);
        @trigger_error("Passing {$type} to the \$typedConfigManager parameter of ConfigFormBase::__construct() is deprecated in drupal:10.2.0 and must be an instance of \\Drupal\\Core\\Config\\TypedConfigManagerInterface in drupal:11.0.0. See https://www.drupal.org/node/3404140", E_USER_DEPRECATED);
    }
}

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