custom/plugins/TonurSeoFilterLandingpages6/src/Resources/views/storefront/layout/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
  2. {% block layout_breadcrumb_list %}
  3.     {% if tonurLandingpage and
  4.         tonurLandingpage.translated.breadcrumb and
  5.         config('TonurSeoFilterLandingpages6.config.active') and
  6.         config('TonurSeoFilterLandingpages6.config.showBreadcrumb')
  7.     %}
  8.         {% set tonurLandingpageCategory = tonurLandingpage.category %}
  9.         {% do tonurLandingpageCategory.setId(tonurLandingpage.id) %}
  10.         {% do tonurLandingpageCategory.setType('link') %}
  11.         {% do tonurLandingpageCategory.setName(tonurLandingpage.translated.breadcrumb ) %}
  12.         {% do tonurLandingpageCategory.addTranslated('name', tonurLandingpage.translated.breadcrumb ) %}
  13.         {% do tonurLandingpageCategory.addTranslated('linkType', 'TonurSeoFilterLandingpage') %}
  14.         {% do tonurLandingpageCategory.addTranslated('externalLink', metaInformation.canonical) %}
  15.         {% do tonurLandingpageCategory.addTranslated('internalLink', metaInformation.canonical) %}
  16.         {% set breadcrumbCategories = breadcrumbCategories|merge(
  17.             {
  18.                 (tonurLandingpage.id): tonurLandingpageCategory
  19.             }
  20.         ) %}
  21.         {% set categoryId = tonurLandingpageCategory.id %}
  22.         {% if feature('v6.5.0.0') %}
  23.             {% set breadcrumbKeys = breadcrumbCategories|keys %}
  24.         {% else %}
  25.             {% set breadcrumbKeys =  breadcrumbKeys|merge([(tonurLandingpage.id)])%}
  26.         {% endif %}
  27.     {% endif %}
  28.     {{ parent() }}
  29. {% endblock %}