Skip to content

Instantly share code, notes, and snippets.

@mariohernandez
Created February 11, 2019 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariohernandez/19a40b91105cde61d79a38b9068842e0 to your computer and use it in GitHub Desktop.
Save mariohernandez/19a40b91105cde61d79a38b9068842e0 to your computer and use it in GitHub Desktop.
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
{% set attributes = attributes.addClass(classes) %}
{% embed '@sixflags_theme/main-menu/main-menu.twig' with {
attributes: attributes,
title_prefix: title_prefix,
title_suffix: title_suffix,
menu_title_icon: 'icon-menu-hamburger',
menu_title: 'Main Menu',
menu_title_short: 'Menu',
content: content,
} only
%}
{% block main_menu_tools %}
{{ title_prefix }}
{{ title_suffix }}
{% endblock %}
{% block main_menu_links %}
{{ content }}
{% endblock %}
{% endembed %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment