Commit f1d1dac7 authored by max's avatar max
Browse files

refactored to {% extends '@KnpMenu/menu.html.twig' %} - removed block label - closes: #4

parent 48f329c4
{% extends 'knp_menu.html.twig' %}
{% extends '@KnpMenu/menu.html.twig' %}
{% block linkElement %}
{% spaceless %}
......@@ -18,12 +18,3 @@
</a>
{% endspaceless %}
{% endblock %}
{% block label %}
{%- set translation_domain = item.extra('translation_domain', 'messages') -%}
{%- set label = item.label -%}
{%- if translation_domain is not same as(false) -%}
{%- set label = label|trans(item.extra('translation_params', {}), translation_domain) -%}
{%- endif -%}
{%- if options.allow_safe_labels and item.extra('safe_label', false) %}{{ label|raw }}{% else %}{{ label }}{% endif -%}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment