diff --git a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php index e5769bf..abd6d6d 100644 --- a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php @@ -72,7 +72,8 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) { * The configuration importer. */ protected function validateThemeInstalls(ConfigImporter $config_importer) { - $themes = $this->themeHandler->listInfo(); + // Get all themes including those that are not installed. + $themes = $this->themeHandler->rebuildThemeData(); foreach ($config_importer->getExtensionChangelist('theme', 'install') as $theme) { if (!isset($themes[$theme])) { $config_importer->logError($this->t('Unable to install theme %theme since it does not exist.', array('%theme' => $theme)));