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.
In Drupal 8 it's possible to have a static interface language (german in my case) and selectable entity languages (ie. german and english, using german as default language).
In the Linkit dialog the autocomplete search uses the correct language of the entity. Opening the Linkit dialog to edit a link, the titles displayed as Link and Selected link always use german. Don't know whether Linkit uses the default entity language or the interface language.
Greats from Germany
LeisureLarry
Comments
Comment #2
LeisureLarry CreditAttribution: LeisureLarry commentedComment #3
LeisureLarry CreditAttribution: LeisureLarry commentedFound the problem in linkit_form_editor_link_dialog_alter. In the try-catch-block you load the entity in order to fill the default values of the form. But you don't use getTranslationFromContext after getting the entity. Fixed it by adding it.
Greats from Germany
LeisureLarry
Comment #5
anonThanks for the solution.