Installing Content Translation module breaks Rest resources

Created on 20 June 2023, about 2 years ago

Problem/Motivation

Simply installing Content Translation on a site with rest resources breaks those resources. This is because Content Translation add drupal:content-translation-overview links (and others) to entities, but it does not declare those relation types. Rest resource URLs throw an unhandled exception due to this.

Note that this was found (somewhat by accident) in 📌 [meta] Improve support for entity types without a canonical link Needs work but also has come up in #2135829: [PP-1] EntityResource: translations support .

Steps to reproduce

  1. Install Rest and Node and visit the shipped node resource for a given node.
  2. Install Content Translation.
  3. Reload the resource.

Proposed resolution

Provide the respective link relation types.

Remaining tasks

User interface changes

-

API changes

-

Data model changes

Content Translation now provides the following link relation types:

  • drupal:content-translation-overview
  • drupal:content-translation-add
  • drupal:content-translation-edit
  • drupal:content-translation-delete

Release notes snippet

🐛 Bug report
Status

Active

Version

9.5

Component
Content translation 

Last updated 1 day ago

No maintainer
Created by

🇩🇪Germany tstoeckler Essen, Germany

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024