function 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\ExtensionCode
public function __construct($root, ConfigFactoryInterface $config_factory, ThemeExtensionList $theme_list) {
$this->root = $root;
$this->configFactory = $config_factory;
$this->themeList = $theme_list;
}