You are here

public function ThemeHandler::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::__construct()

Constructs a new ThemeHandler.

Parameters

string $root: The app root.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory to get the installed themes.

\Drupal\Core\Extension\ThemeExtensionList $theme_list: A extension discovery instance.

File

core/lib/Drupal/Core/Extension/ThemeHandler.php, line 52

Class

ThemeHandler
Default theme handler using the config system to store installation statuses.

Namespace

Drupal\Core\Extension

Code

public function __construct($root, ConfigFactoryInterface $config_factory, ThemeExtensionList $theme_list) {
  $this->root = $root;
  $this->configFactory = $config_factory;
  $this->themeList = $theme_list;
}