Problem/Motivation
It would be nice to change the language of entities by using drush commands.
Proposed resolution
Create two drush commands:
1) Command that changes the default language to a specific entity:
drush entity_change_default_language:change-default-language node 4 en
2) Command that changes the default language to all entities of a specific type:
It would only change the language, when that entity has a translation into the target language.
drush entity_change_default_language:change-default-language-entity-type node en --preserve-languages=es
Issue fork entity_change_default_language-3481713
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
omarlopesinoI've created a MR with the functionality, please check!
Comment #6
facine commentedThanks, I have applied some changes, as readonly is available in PHP >= 8.1.
Merged!