Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 712 Bytes

2021-12-01-add-filter-event-to-modify-the-sitemap-header.md

File metadata and controls

13 lines (13 loc) · 712 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Add filter event to modify the sitemap header
issue: NEXT-19239
author: Max
author_email: [email protected]
author_github: @aragon999
---

Core

  • Added Shopware\Core\Content\Sitemap\Event\SitemapFilterOpenTagEvent to modify the open tag of the generated sitemap
  • Added EventDispatcher for Service Shopware\Core\Content\Sitemap\Service\SitemapHandleFactory in src/Core/Content/DependencyInjection/sitemap.xml
  • Changed Shopware\Core\Content\Sitemap\Service\SitemapHandle to dispatch a SitemapFilterOpenTagEvent
  • Changed Shopware\Core\Content\Sitemap\Service\SitemapHandleFactory::__construct for dependency Injection
  • Changed Shopware\Core\Content\Test\Sitemap\ServiceSitemapHandleTest