function ThemeController::__construct

Same name and namespace in other branches
  1. 11.x 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. 9 core/modules/system/src/Controller/ThemeController.php \Drupal\system\Controller\ThemeController::__construct()
  4. 8.9.x core/modules/system/src/Controller/ThemeController.php \Drupal\system\Controller\ThemeController::__construct()

Constructs a new ThemeController.

Parameters

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

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

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

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

File

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

Class

ThemeController
Controller for theme handling.

Namespace

Drupal\system\Controller

Code

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

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