public function importConfigSimple($config) {
    // Stream wrappers are not available during installation.
    $tmp_dir = (defined('MAINTENANCE_MODE') ? '/tmp' : 'temporary:/') . '/confi_simple' . $this->uuid->generate();
    // Notify ConfigEventSubscriber that this is update from OpenY.
    global $_openy_config_import_event;
    $_openy_config_import_event = TRUE;
    if (!$this->fileSystem->mkdir($tmp_dir)) {
      throw new ConfigImporterException('Failed to create temporary directory: ' . $tmp_dir);
    }
    $tmp_storage = new FileStorage($tmp_dir);
    $file = "$this->directory/$config.yml";
    if ($this->upgradeLogManager->isManuallyChanged($config)) {
      // Skip config update and log this to logger entity.
      $this->logConfigImportError($file, $config);
      $_openy_config_import_event = FALSE;
      return;
    }
    if (file_exists($file)) {
      file_unmanaged_copy($file, $tmp_dir, FILE_EXISTS_REPLACE);
      // Check if exist logger entity and enabled force mode.
      if ($this->upgradeLogManager->isForceMode() && $this->upgradeLogManager->isManuallyChanged($config, FALSE)) {
        // ConfigStorage->write not trigger config save event, so create
        // backup here.
        $this->upgradeLogManager->createBackup($config);
      }
      $this->configStorage->write($config, $tmp_storage->read($config));
    }
    $_openy_config_import_event = FALSE;
  }
public function importConfigSimple($config) {
    // Stream wrappers are not available during installation.
    $tmp_dir = (defined('MAINTENANCE_MODE') ? '/tmp' : 'temporary:/') . '/confi_simple' . $this->uuid->generate();
    // Notify ConfigEventSubscriber that this is update from OpenY.
    global $_openy_config_import_event;
    $_openy_config_import_event = TRUE;
    if (!$this->fileSystem->mkdir($tmp_dir)) {
      throw new ConfigImporterException('Failed to create temporary directory: ' . $tmp_dir);
    }
    $tmp_storage = new FileStorage($tmp_dir);
    $file = "$this->directory/$config.yml";
    if ($this->upgradeLogManager->isManuallyChanged($config)) {
      // Skip config update and log this to logger entity.
      $this->logConfigImportError($file, $config);
      $_openy_config_import_event = FALSE;
      return;
    }
    if (file_exists($file)) {
      file_unmanaged_copy($file, $tmp_dir, FILE_EXISTS_REPLACE);
      // Check if exist logger entity and enabled force mode.
      if ($this->upgradeLogManager->isForceMode() && $this->upgradeLogManager->isManuallyChanged($config, FALSE)) {
        // ConfigStorage->write not trigger config save event, so create
        // backup here.
        $this->upgradeLogManager->createBackup($config);
      }
      $this->configStorage->write($config, $tmp_storage->read($config));
    }
    $_openy_config_import_event = FALSE;
  }
public function importConfigSimple ( $ config ) { // Stream wrappers are not available during installation. $ tmp_dir = ( defined ( 'MAINTENANCE_MODE' ) ? '/tmp' : 'temporary:/' ) . '/confi_simple' . $ this -> uuid -> generate ( ) ; // Notify ConfigEventSubscriber that this is update from OpenY. global $ _openy_config_import_event ; $ _openy_config_import_event = TRUE ; if ( ! $ this -> fileSystem -> mkdir ( $ tmp_dir ) ) { throw new ConfigImporterException ( 'Failed to create temporary directory: ' . $ tmp_dir ) ; } $ tmp_storage = new FileStorage ( $ tmp_dir ) ; $ file = "$this->directory/$config.yml" ; if ( $ this -> upgradeLogManager -> isManuallyChanged ( $ config ) ) { // Skip config update and log this to logger entity. $ this -> logConfigImportError ( $ file , $ config ) ; $ _openy_config_import_event = FALSE ; return ; } if ( file_exists ( $ file ) ) { file_unmanaged_copy ( $ file , $ tmp_dir , FILE_EXISTS_REPLACE ) ; // Check if exist logger entity and enabled force mode. if ( $ this -> upgradeLogManager -> isForceMode ( ) && $ this -> upgradeLogManager -> isManuallyChanged ( $ config , FALSE ) ) { // ConfigStorage->write not trigger config save event, so create // backup here. $ this -> upgradeLogManager -> createBackup ( $ config ) ; } $ this -> configStorage -> write ( $ config , $ tmp_storage -> read ( $ config ) ) ; } $ _openy_config_import_event = FALSE ; }
Simplified version of importConfigs.

Main difference between this functions that in simple version we
skip export of all site configs to temp directory and just copy and import
only listed config for import. Also here was skipped configs filter logic.

@param string $config
Config name.

@throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Simplified version of importConfigs .