Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By plach on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
A new way to determine whether an entity type, bundle or field supports translation has been introduced in D8. We have:
- An entity-level
'translatable'
key in the entity plugin info, which states whether the entity type supports translation or is inherently language-unaware (the default). - A bundle-level
'translatable'
key in the bundle info, which states whether that specific bundle has translation support enabled (by default it doesn't). The core Content translation module alters the bundle info based on its own configuration.
As a consequence, the field translation handler concept and the related 'translation'
entity key have been removed in favor of the 'translatable'
key in the entity info.
Impacts:
Module developers