custom/plugins/LoyxxRichBreadcrumb/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2.  {% block base_breadcrumb %}
  3.      {% if config('LoyxxRichBreadcrumb.config.modifyProductDetailBreadcrumb') and false %}
  4.          {{ loyxx_save_breadcrumb_category(page, app.request, context) }}
  5.          {% if page.product %}
  6.              {{ loyxx_get_breadcrumb_category(page, app.request, context) }}
  7.          {% endif %}
  8.      {% endif %}
  9.      {% set sessionSeoCategory = app.request.session.get(constant('\\LoyxxRichBreadcrumb\\Subscriber\\ProductPageLoadedEvent::SESSION_SEO_CATEGORY')) %}
  10.      {# @var \Shopware\Core\Content\Category\CategoryEntity #}
  11.      {% set seoCategory = sessionSeoCategory ? sessionSeoCategory : page.product.seoCategory %}
  12.      {% if seoCategory != null and not seoCategory.active and activeRoute in ['frontend.detail.page',' frontend.navigation.page'] %}
  13.          {% set seoCategory = page.product.categoryTree | get_active_category(context) %}
  14.      {% endif %}
  15.      {% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
  16.          context: context,
  17.          category: seoCategory,
  18.          page: page
  19.      } only %}
  20.  {% endblock %}