You are here

public function ThemeHandler::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::__construct()
  2. 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: An extension discovery instance.

File

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

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;
}