For a mega menu, I'm trying to add theme suggestions to every parent menu item / menu link depending on the chosen view mode for that menu item.
I'm aware of the
MYTHEME_theme_suggestions_menu_link_content_alter() function but it does not work for me.
Every menu item has a
view mode field but since I can't use a hook to preprocess it, I cannot create any theme suggestion for menu items .When I try to use the
theme_suggestion hook on the menu, I can only see items like this:
Am I missing something? Is it possible to add theme suggestions to menu items? If so,how can I do that?