ThemeSettingsForm::__construct

public ThemeSettingsForm::__construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, MimeTypeGuesserInterface $mime_type_guesser)

Constructs a ThemeSettingsForm object.

Parameters

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

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

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

\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mime_type_guesser: The MIME type guesser instance to use.

Overrides ConfigFormBase::__construct

File

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

Class

ThemeSettingsForm
Displays theme configuration for entire site and individual themes.

Namespace

Drupal\system\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, MimeTypeGuesserInterface $mime_type_guesser) {
  parent::__construct($config_factory);

  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->mimeTypeGuesser = $mime_type_guesser;
}
doc_Drupal
2016-10-29 09:48:26
Comments
Leave a Comment

Please login to continue.