function ThemeSettingsForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/src/Form/ThemeSettingsForm.php \Drupal\system\Form\ThemeSettingsForm::__construct()
  2. 10 core/modules/system/src/Form/ThemeSettingsForm.php \Drupal\system\Form\ThemeSettingsForm::__construct()
  3. 9 core/modules/system/src/Form/ThemeSettingsForm.php \Drupal\system\Form\ThemeSettingsForm::__construct()
  4. 8.9.x core/modules/system/src/Form/ThemeSettingsForm.php \Drupal\system\Form\ThemeSettingsForm::__construct()

Constructs a ThemeSettingsForm object.

Parameters

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

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

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler instance to use.

\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The theme handler.

\Symfony\Component\Mime\MimeTypeGuesserInterface $mimeTypeGuesser: The MIME type guesser instance to use.

\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The theme manager.

\Drupal\Core\File\FileSystemInterface $fileSystem: The file system.

\Drupal\Core\Extension\ThemeSettingsProvider|null $themeSettingsProvider: The theme settings helper service.

Overrides ConfigFormBase::__construct

File

core/modules/system/src/Form/ThemeSettingsForm.php, line 58

Class

ThemeSettingsForm
Displays theme configuration for entire site and individual themes.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, protected ModuleHandlerInterface $moduleHandler, protected ThemeHandlerInterface $themeHandler, protected $mimeTypeGuesser, protected ThemeManagerInterface $themeManager, protected FileSystemInterface $fileSystem, protected ThemeSettingsProvider $themeSettingsProvider) {
  parent::__construct($config_factory, $typedConfigManager);
}

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