Problem/Motivation

Annotation of the Media Entity Type contains a declaration of the translation handler. However, this is not necessary, because this handler will be added automatically by content_translation module. According to the content_translation_entity_type_alter() function comment:

If the entity paths match the default pattern above and there is no need for an entity-specific translation handler, Content Translation will provide built-in support for the entity.

Proposed resolution

Remove translation handler.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

Release notes snippet

-

Comments

id.aleks created an issue. See original summary.

id.aleks’s picture

Please test and review the patch.

id.aleks’s picture

Assigned: id.aleks » Unassigned
Status: Active » Needs review
phenaproxima’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

+1 for this; could use a test, though. All it needs to do (it can be a kernel test) is assert that, if Content Translation is installed, the Media entity type uses that particular translation handler.

id.aleks’s picture

Adding related issues. Closing as a duplicate of https://www.drupal.org/project/drupal/issues/3072929