Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Config Entities - especially bundles ie node types/taxonomy vocabularies often have translations - both surface and deep (ie field config). Including them in the clone would be a large time saver in many multilingual situations.
Steps to reproduce
Clone a config entity with translations.
Proposed resolution
Clone the translations as well.
Remaining tasks
Write tests
User interface changes
Add checkbox to config entity clone forms.
Issue fork entity_clone-3183368
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
NickDickinsonWildeNeeds tests (and review ofc)
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@NickDickinsonWilde Your approach for cloning a config entity translation looks perfect. I am going to use it in the Webform module. Thanks
@see #3183926: Properly duplicate a webform's translations
Comment #5
NickDickinsonWildeReady for testbot.
(btw, thanks for the comment Jacob, some of the tricky details were based on a comment of Berdir's a while back on stack overflow)