Skip to content

Commit

Permalink
feature #3804 #3796 adding raw to the menu item label (ChangePlaces)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

#3796 adding raw to the menu item label

To allow html to be added to menu item labels, e.g. to add entity counts alongside the title

See #3796

Commits
-------

b29ba1b #3796 adding raw to the menu item label
  • Loading branch information
javiereguiluz committed Sep 25, 2020
2 parents a3f2c95 + b29ba1b commit b1e9497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/menu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% else %}
<a href="{{ item.linkUrl }}" class="{{ item.cssClass }}" target="{{ item.linkTarget }}" rel="{{ item.linkRel }}" referrerpolicy="origin-when-cross-origin">
{% if item.icon is not empty %}<i class="menu-icon fa-fw {{ item.icon }}"></i>{% endif %}
<span>{{ item.label }}</span>
<span>{{ item.label | raw }}</span>
{% if item.hasSubItems %}<i class="fa fa-fw fa-angle-right treeview-icon"></i>{% endif %}
</a>
{% endif %}
Expand Down

0 comments on commit b1e9497

Please sign in to comment.