getConfigImporter(); $core_extension = $importer->getStorageComparer()->getSourceStorage()->read('core.extension'); if (!isset($core_extension['module']['config'])) { $importer->logError($this->t('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.')); } } /** * {@inheritdoc} */ public static function getSubscribedEvents() { $events[ConfigEvents::IMPORT_VALIDATE][] = ['onConfigImporterValidate', 20]; return $events; } }