Add setDefaultTranslationEnforced to \Drupal\Core\TypedData\TranslatableInterface

Created on 17 October 2023, 8 months ago

Problem/Motivation

In πŸ› $entity->isDefaultTranslation() behaves incorrectly when changing default translation, causing file/image field usage to be set to zero, causing files to be deleted Fixed we added a deprecation if \Drupal\Core\TypedData\TranslatableInterface does not have a setDefaultTranslationEnforced method. We need to add it to the interface.

Proposed resolution

Add the method to the interface to 11.x before 11.0.0 is released and remove the deprecation.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024