diff --git a/core/modules/content_moderation/src/EntityOperations.php b/core/modules/content_moderation/src/EntityOperations.php index 52d2ca3909..ed0881ba79 100644 --- a/core/modules/content_moderation/src/EntityOperations.php +++ b/core/modules/content_moderation/src/EntityOperations.php @@ -11,6 +11,7 @@ use Drupal\Core\Entity\EntityPublishedInterface; use Drupal\Core\Entity\EntityTypeBundleInfoInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; +use Drupal\Core\Entity\TranslatableInterface; use Drupal\Core\Form\FormBuilderInterface; use Drupal\content_moderation\Form\EntityModerationForm; use Drupal\Core\Routing\RouteBuilderInterface; @@ -119,6 +120,10 @@ public function entityPresave(EntityInterface $entity) { || $current_state->isDefaultRevisionState() || !$this->moderationInfo->isDefaultRevisionPublished($entity); + if ($entity instanceof TranslatableInterface) { + $update_default_revision = $update_default_revision || $entity->isNewTranslation(); + } + // Fire per-entity-type logic for handling the save process. $this->entityTypeManager ->getHandler($entity->getEntityTypeId(), 'moderation')