function ThemeController::__construct

Same name in other branches
  1. 9 core/modules/system/src/Controller/ThemeController.php \Drupal\system\Controller\ThemeController::__construct()
  2. 10 core/modules/system/src/Controller/ThemeController.php \Drupal\system\Controller\ThemeController::__construct()
  3. 11.x 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;
}

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