It would be nice, if one makes the link field of menu link entities translatable, the menu system takes those translations into account. That way, it's possible to achieve a translation of the menu where editors can change the link target per language.
Comment | File | Size | Author |
---|---|---|---|
#2 | d8_menu_url_translatable.patch | 1.86 KB | fago |
Comments
Comment #2
fagoAttached patch fixes this IF the menu link field is altered to be translatable. If this feature request is accepted, I think this would need deserve test coverage also.
Comment #5
Leksat CreditAttribution: Leksat at Amazee Labs commented@fago, I've met a performance issue during usage of this patch.
I had to implement a custom hook_entity_predelete() to fix the issue. Here is a description from a helper class:
I hope it's clear from this description what the issue is.
Comment #15
smustgrave CreditAttribution: smustgrave at Mobomo commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
The proposed solution will need test cases to go with it.
New functions should be typehinted.
Also it was reported this caused performance issues so think a review of that will also need to happen.
Thanks!