- Issue created by @Yassinetk
- πΊπΈUnited States inversed
Is this patch still working in Drupal 9.5.x? When I apply it, I get the following error:
Error: Call to undefined method Drupal\menu_link_content\Plugin\Menu\MenuLinkContent::hasTranslation() in template_preprocess_tb_megamenu_item() (line 687 of modules/contrib/tb_megamenu/tb_megamenu.module).
- πΊπΈUnited States inversed
I modified the patch a bit to get this working:
- Fetch the entity before checking the translation
- Check against the content language (should match the menu items in general) and not the current language
- π«π·France Guillaume Aveline
I had to patch it for 3.x branch, here's the patch.
- Status changed to Needs review
about 1 year ago 8:45pm 13 December 2023 - heddn Nicaragua
The changes in π Untranslated menu items are displayed in menus Needs work seem like a cleaner solution. Adding a patch that is based on it.