Install

Works with Drupal: ^11.4 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 1.48 MB
MD5: c55f82520067902e7f806b2ae3b5c0a4
SHA-1: 3cf0ae936a42f75d37c4e4fb605c4f288f828c65
SHA-256: 13f606542888918a8439974bf83949e98155fb22fe6b87d16668392ecae3a51c
Download zip 1.56 MB
MD5: 605e7faa9d87d487abc373fe5ad6f72c
SHA-1: b12007e8c5a510bd7131474a8a5e9db3030b5721
SHA-256: 813340a13253adfd3eb97aee39d75a29993ffbcb40eb6129cba1b620a5efabaa

Release notes

A user interface, settings for the supported entity types, Drupal 12 support and user documentation. This release needs Drupal 11.4 or later, or Drupal 12. Sites on Drupal 9, 10 or 11.0 to 11.3 stay on 1.0.x.

Run drush updb after updating: it creates the new settings with their defaults.

New

  • A "Change default language" operation on translatable content, with a confirmation form. The form offers the same options as drush ecdl:cdl: the new default language, create the missing translation, which translations to keep, keep the old default language, and which reference fields to follow. Content with a single translation can be changed by creating the missing translation.
  • A settings page at Configuration > Regional and language > Entity Change Default Language. It excludes some entity types, or allows only some. The default enables every translatable content entity type, as before. The form, Drush, the queue worker and the service all respect it. Paragraphs always follow their host.
  • A README, a help page and a user documentation site with screenshots of every step.
  • ecdl:cdl accepts string entity ids.

Changes in behavior

  • Requires Drupal ^11.4 || ^12 and PHP 8.3 or later. The module now depends on Language and Content Translation.
  • Two new permissions, both restricted: "Change the default language of content entities", which also needs update access to the entity, and "Administer Entity Change Default Language".
  • The Drush commands work with Drush 14. With Drush 14 they failed at the end with The log level "success" does not exist.
  • An unknown entity type in Drush now shows the core message. The two confirmation prompts have corrected texts.
  • Code that builds these classes by hand must pass the new constructor arguments. The service takes ChangeDefaultLanguageOptions as its fourth argument. The queue worker has no create() any more: core autowires it, and it takes the same helper as its last argument. The Drush commands class changed its arguments too. The service interface does not change, and EntityChangeDefaultLanguageInterface can be autowired.

Contributors (2)

dieterholvoet, facine

Changelog

Issues: 3 issues resolved.

Changes since 1.0.4:

Feature

  • #3529550 by dieterholvoet, facine: Add UI for changing default language

Task

  • #3628439 by facine: Drupal 12 support and object-oriented hooks
  • #3628506 by facine: Add a README, help page, user documentation and logo
Created by: facine
Created on: 5 Oct 2026 at 07:37 UTC
Last updated: 5 Oct 2026 at 07:38 UTC
Bug fixes
New features

Other releases