We need a standardized and complete way to copy config between two config storages.
Many tools such as drush and drupal console and also a couple of modules do this all in their own way now and some do it in a incomplete fashion that may lead to strange behaviour in edge cases.
Examples in core:
\Drupal\Core\Config\ConfigManager::createSnapshot
misbehaves badly when storages are not in default collection.
\Drupal\Tests\ConfigTestTrait::copyConfig
ignores collections (so all tests based on this also ignore collections.)
related bug in drush: https://github.com/drush-ops/drush/issues/3572
related bug in drupal console: https://github.com/hechoendrupal/drupal-console/issues/1736
Modules implementing this logic on their own: config_split, config_sync, config_owner (and for sure a couple more)
Add a utility trait to copy config between storages which also takes care of collections.
port code from
#2991683: Move configuration transformation API in \Drupal\Core\Config namespace β
review
commit
none
todo
Fixed
8.7 β°οΈ
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.