You are here

public function ThemeController::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/src/Controller/ThemeController.php \Drupal\system\Controller\ThemeController::__construct()

Constructs a new ThemeController.

Parameters

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

\Drupal\Core\Extension\ThemeExtensionList $theme_list: The theme extension list.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ThemeInstallerInterface $theme_installer: The theme installer.

File

core/modules/system/src/Controller/ThemeController.php, line 56

Class

ThemeController
Controller for theme handling.

Namespace

Drupal\system\Controller

Code

public function __construct(ThemeHandlerInterface $theme_handler, ThemeExtensionList $theme_list, ConfigFactoryInterface $config_factory, ThemeInstallerInterface $theme_installer) {
  $this->themeHandler = $theme_handler;
  $this->themeList = $theme_list;
  $this->configFactory = $config_factory;
  $this->themeInstaller = $theme_installer;
}