Install
Works with Drupal: ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
51.25 KB
MD5: 935176b140b94f9ed55c916296e65bf0
SHA-1: f6999ae38846d8c0de45f692ce026b62b27d70f4
SHA-256: ee9f11d603768059f6b0241cca837d7a449b9ec11f24e8da29cdc352ecb71cb8
Download zip
95.71 KB
MD5: 25f4d6597ad1433a491c39691efc9ebc
SHA-1: c025ea8e41989d0ca98d9b41a803c2d4b231dfbd
SHA-256: 7e0ce178aa2124eab1df477fa9e21ae701bb7a6da8055e297d59094caf01d286
Release notes
Bug fixes, safer defaults and full test coverage. This is the last release for Drupal 9 and 10.0; it supports Drupal 9, 10 and 11.
Changes in behavior
- Translations are kept by default.
update()without$langcodes, Drush without--preserve-languagesand queue items without a list now keep every translation. Pass[]to remove all but the new default. - Only paragraph-like references (
entity_reference_revisions) follow the host now. To follow other reference fields, name them with$options['follow_fields']or--follow-fields. ecdl:cdlandecdl:dletno longer create a missing translation unless--create-missingis passed.--preserve-legacy-default-languagenow really keeps the old default.- The whole change, references included, runs in one database transaction and is rolled back on failure.
- The queue worker logs every skipped item and retries a failed one up to 5 times. Items queued by 1.0.3 still work.
- Code that builds these classes by hand must pass the new constructor arguments: the service takes
@database, and the queue worker takes the logger and the queue factory.
Contributors (4)
akash_deep, dieterholvoet, facine, sinn
Changelog
Issues: 13 issues resolved.
Changes since 1.0.3:
Bug
- #3580842 by akash_deep, facine: Function watchdog_exception not found
- #3628410 by facine: The Drush option --preserve-legacy-default-language creates translations instead of preserving the old default
- #3546759 by sinn, facine: Do not update referenced entities recursively.
- #3529403 by dieterholvoet, facine: The path alias is not copied for nodes that don't already have a translation of the new default language
- #3628420 by facine: ecdl:dlet --bundle fails for node and taxonomy terms
- #3628425 by facine: A second update() call on the same entity in one process does nothing and returns TRUE
- #3628429 by facine: Wrap the default language change in a transaction
- #3628432 by facine: Queue items that fail to change language are deleted without trace
Feature
- #3529410 by dieterholvoet, facine: Make it easier to preserve all existing translations
Task
- #3580840 by facine: [CI] Scheduled pipeline failed on 1.x
- #3628405 by facine: Add DDEV configuration for local development
- #3628406 by facine: Add kernel and functional test coverage
#3529394 (configurable reference fields) is closed as a duplicate of #3546759; thanks to dieterholvoet for raising it.