New answers tagged i18n-l10n
0
votes
Accepted
How to get translated menu link entity
I managed to solve this issue with the following code:
if ($lang) {
$entity = \Drupal::service('entity.repository')
->loadEntityByUuid('menu_link_content', $menu_tree_element_link->...
Top 50 recent answers are included
Related Tags
i18n-l10n × 19217 × 556
8 × 434
views × 199
entities × 130
nodes × 108
taxonomy-terms × 93
theming × 88
routes × 74
path-aliases × 54
users × 51
6 × 50
navigation × 46
forms × 44
blocks × 44
uri × 43
commerce × 32
search × 30
datetime × 30
9 × 30
webforms × 28
multi-sites × 25
redirection × 22
emails × 20
configuration × 20