You are here

public function ThemeController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Config\ConfigFactoryInterface $config_factory: The config factory.

File

core/modules/system/src/Controller/ThemeController.php, line 40
Contains \Drupal\system\Controller\ThemeController.

Class

ThemeController
Controller for theme handling.

Namespace

Drupal\system\Controller

Code

public function __construct(ThemeHandlerInterface $theme_handler, ConfigFactoryInterface $config_factory) {
  $this->themeHandler = $theme_handler;
  $this->configFactory = $config_factory;
}