I have a mega menu that displays child menu items when you click on a parent menu item in form of a drop-down menu. The thing is that, this menu, also displays cards as nodes and I want to add a theme suggestion only to this card nodes that are inside the menu drop-down.
I can get the node with a simple
MYTHEME_theme_suggestions_node_alter() hook but I don't know how to get the menu item of it.
menu_ui_get_menu_link_defaults($node) as seen in this question but it always returns 'main', which is correct but, also almost every node on the page apart from the drop-down menu node seems to come from it and, therefore, that's not what I want.
All I need is an exclusive theme suggestion for this nodes represented on the mega menu drop-down