parent::
__construct($root,
$type,
$cache,
$info_parser,
$module_handler,
$state,
$install_profile);
$this->configFactory =
$config_factory;
$this->engineList =
$engine_list;
} /**
* {@inheritdoc}
*/
protected function doList() { // Find themes.
$themes = parent::
doList();
$engines =
$this->engineList->
getList();
// Always get the freshest list of themes (rather than the already cached
// list in $this->installedThemes) when building the theme listing because a
// theme could have just been installed or uninstalled.
$this->installedThemes =
$this->configFactory->
get('core.extension'
)->
get('theme'
) ?:
[];
$sub_themes =
[];
// Read info files for each theme.
foreach ($themes as $name =>
$theme) { // Defaults to 'twig' (see self::defaults above).