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.

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NickDickinsonWilde created an issue. See original summary.

NickDickinsonWilde’s picture

Status: Active » Needs work

Needs tests (and review ofc)

jrockowitz’s picture

@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

NickDickinsonWilde’s picture

Status: Needs work » Needs review

Ready 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)