- ๐บ๐ธUnited States recrit
I have ran into this multiple times as well.
Common Use Case: An editor wants to unpublish all translations of a node so that the page is no longer visible to anonymous traffic for any language.Can a core maintainer weigh in on the logic behind this?
Form description: "Only this translation is published. You must publish at least one more translation to unpublish this one."
Code comment in "core/modules/content_translation/src/ContentTranslationHandler.php":// If there is only one published translation we cannot unpublish it, // since there would be nothing left to display.
- "nothing left to display": that is the goal for the use case mentioned above. Users that can view unpublished content will still be able to view it.
- First commit to issue fork.
- Status changed to Closed: works as designed
about 1 month ago 8:48pm 2 September 2025 - ๐ธ๐ชSweden peter tรถrnstrand
This has changed in core 11.x. Term entities no longer have this problem. Group and media entities still does though.
The way to handle this is to specify a translation handler in the entity type:
#[ContentEntityType( id: 'taxonomy_term', ... handlers: [ 'storage' => TermStorage::class, ... 'translation' => TermTranslationHandler::class, ], ... )]
See Drupal\node\NodeTranslationHandler and Drupal\taxonomy\TermTranslationHandler.
I'm closing this as works as designed as there is a solution for this available for contrib and a separate issue for component "media sytem". See related issues.