You are here

protected function ConfigImporterService::export in Config Importer and Tools 8

Same name and namespace in other branches
  1. 8.2 src/ConfigImporterService.php \Drupal\config_import\ConfigImporterService::export()
  2. 8.0 src/ConfigImporterService.php \Drupal\config_import\ConfigImporterService::export()

Dump configurations to files storage.

Parameters

FileStorage $storage: A storage to dump to.

1 call to ConfigImporterService::export()
ConfigImporterService::importConfigs in src/ConfigImporterService.php
Import configurations.

File

src/ConfigImporterService.php, line 289

Class

ConfigImporterService
Class ConfigImporterService.

Namespace

Drupal\config_import

Code

protected function export(FileStorage $storage) {
  foreach ($this->configStorage
    ->listAll() as $config) {
    $storage
      ->write($config, $this->configStorage
      ->read($config));
  }
}