You are here

public function ThemeHandler::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\ModuleHandlerInterface $module_handler: The module handler to fire themes_installed/themes_uninstalled hooks.

\Drupal\Core\State\StateInterface $state: The state store.

\Drupal\Core\Extension\InfoParserInterface $info_parser: The info parser to parse the theme.info.yml files.

\Drupal\Core\Extension\ExtensionDiscovery $extension_discovery: (optional) A extension discovery instance (for unit tests).

File

core/lib/Drupal/Core/Extension/ThemeHandler.php, line 130
Contains \Drupal\Core\Extension\ThemeHandler.

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, ModuleHandlerInterface $module_handler, StateInterface $state, InfoParserInterface $info_parser, ExtensionDiscovery $extension_discovery = NULL) {
  $this->root = $root;
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->state = $state;
  $this->infoParser = $info_parser;
  $this->extensionDiscovery = $extension_discovery;
}