Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
70 * | 70 * |
71 * @param \Drupal\Core\Config\ConfigImporterEvent $event | 71 * @param \Drupal\Core\Config\ConfigImporterEvent $event |
72 * The config import event. | 72 * The config import event. |
73 */ | 73 */ |
74 public function onConfigImporterValidateSiteUUID(ConfigImporterEvent $event) { | 74 public function onConfigImporterValidateSiteUUID(ConfigImporterEvent $event) { |
75 if (!$event->getConfigImporter()->getStorageComparer()->getSourceStorage()->exists('system.site')) { | |
76 $event->getConfigImporter()->logError($this->t('This import does not contain system.site configuration, so has been rejected.')); | |
77 } | |
75 if (!$event->getConfigImporter()->getStorageComparer()->validateSiteUuid()) { | 78 if (!$event->getConfigImporter()->getStorageComparer()->validateSiteUuid()) { |
76 $event->getConfigImporter()->logError($this->t('Site UUID in source storage does not match the target storage.')); | 79 $event->getConfigImporter()->logError($this->t('Site UUID in source storage does not match the target storage.')); |
77 } | 80 } |
78 } | 81 } |
79 | 82 |