vendor/shopware/storefront/Resources/views/storefront/layout/navigation/offcanvas/back-link.html.twig line 1

Open in your IDE?
  1. {% if item.parentId == context.salesChannel.navigationCategoryId %}
  2.     {% set url = path('frontend.menu.offcanvas') %}
  3. {% else %}
  4.     {% set url = path('frontend.menu.offcanvas', { 'navigationId': item.parentId }) %}
  5. {% endif %}
  6. <a class="nav-item nav-link is-back-link navigation-offcanvas-link js-navigation-offcanvas-link"
  7.    href="{{ url }}"
  8.    itemprop="url"
  9.    title="{{ "general.back"|trans|striptags }}">
  10.     {% block layout_navigation_offcanvas_navigation_category_back_link_text %}
  11.         <span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon">
  12.             {% block layout_utilities_offcanvas_close_icon %}
  13.                 {% sw_icon 'arrow-medium-left' style { 'pack':'solid', 'size': 'sm' } %}
  14.             {% endblock %}
  15.         </span>
  16.         <span itemprop="name">
  17.             {{ "general.back"|trans|sw_sanitize }}
  18.         </span>
  19.     {% endblock %}
  20. </a>