diff core/modules/system/src/SystemConfigSubscriber.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 7a779792577d
children
line wrap: on
line diff
--- a/core/modules/system/src/SystemConfigSubscriber.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/modules/system/src/SystemConfigSubscriber.php	Thu Feb 28 13:21:36 2019 +0000
@@ -72,6 +72,9 @@
    *   The config import event.
    */
   public function onConfigImporterValidateSiteUUID(ConfigImporterEvent $event) {
+    if (!$event->getConfigImporter()->getStorageComparer()->getSourceStorage()->exists('system.site')) {
+      $event->getConfigImporter()->logError($this->t('This import does not contain system.site configuration, so has been rejected.'));
+    }
     if (!$event->getConfigImporter()->getStorageComparer()->validateSiteUuid()) {
       $event->getConfigImporter()->logError($this->t('Site UUID in source storage does not match the target storage.'));
     }