// Reset theme settings.
$theme_settings = &
drupal_static('theme_get_setting'
);
unset($theme_settings[$key]);
// Reset theme listing.
$this->themeHandler->
reset();
// Only install default configuration if this theme has not been installed
// already.
if (!
isset($installed_themes[$key])) { // Install default configuration of the theme.
$this->configInstaller->
installDefaultConfig('theme',
$key);
} $themes_installed[] =
$key;
// Record the fact that it was installed.
$this->logger->
info('%theme theme installed.',
['%theme' =>
$key]);
} $this->cssCollectionOptimizer->
deleteAll();
$this->
resetSystem();
// Invoke hook_themes_installed() after the themes have been installed.