comparison core/modules/config/src/ConfigSubscriber.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 7a779792577d
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
16 * 16 *
17 * @param \Drupal\Core\Config\ConfigImporterEvent $event 17 * @param \Drupal\Core\Config\ConfigImporterEvent $event
18 * The config import event. 18 * The config import event.
19 */ 19 */
20 public function onConfigImporterValidate(ConfigImporterEvent $event) { 20 public function onConfigImporterValidate(ConfigImporterEvent $event) {
21 // Make sure config syncs performed via the Config UI don't break, but
22 // don't worry about syncs initiated via the command line.
23 if (PHP_SAPI === 'cli') {
24 return;
25 }
21 $importer = $event->getConfigImporter(); 26 $importer = $event->getConfigImporter();
22 $core_extension = $importer->getStorageComparer()->getSourceStorage()->read('core.extension'); 27 $core_extension = $importer->getStorageComparer()->getSourceStorage()->read('core.extension');
23 if (!isset($core_extension['module']['config'])) { 28 if (!isset($core_extension['module']['config'])) {
24 $importer->logError($this->t('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.')); 29 $importer->logError($this->t('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.'));
25 } 30 }