- Issue created by @bkildow
In twig when checking for {% if has_megamenu(item.url) %}
it would be nice to be able to optionally specify a type, and have it check against that. This would allow for multiple megamenu entity types to used in a template.
{% if has_megamenu(item.url, 'overview_panel') %}
would be the proposed function, where the 'overview_panel' would be an optional machine name of the megamenu type. This would return TRUE if there is an attached megamenu of this type, and FALSE otherwise.
Active
2.1
Code