Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.