diff --git a/commands/core/config.drush.inc b/commands/core/config.drush.inc index 8294bba..a17a5fb 100644 --- a/commands/core/config.drush.inc +++ b/commands/core/config.drush.inc @@ -6,6 +6,7 @@ */ use Drupal\Core\Config\StorageComparer; +use Drupal\Core\Config\ConfigFactoryOverrideSyncInterface; use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\FileStorage; use Symfony\Component\Yaml\Parser; @@ -304,7 +305,14 @@ function drush_config_export($destination = NULL) { foreach ($source_storage->listAll() as $name) { $destination_storage->write($name, $source_storage->read($name)); } - + // Export configuration collections. + foreach (\Drupal::service('config.storage')->getAllCollectionNames() as $collection) { + $source_storage = $source_storage->createCollection($collection); + $destination_storage = $destination_storage->createCollection($collection); + foreach ($source_storage->listAll() as $name) { + $destination_storage->write($name, $source_storage->read($name)); + } + } if (drush_get_option('add')) { drush_shell_exec_interactive('git add -p %s', $destination_dir); }