class BrandSiteMapSubscriber implements EventSubscriberInterface

Class BrandSiteMapSubscriber is injected as brand.sitemap.listener service. BrandSiteMapSubscriber is subscriber class for handling a logic for subscribed events

Methods

__construct(RouterInterface $router, LanguageRepository $languageRepository, BrandRepository $brandRepository)

ProductSiteMapListener constructor.

static 
getSubscribedEvents()

No description

populateSiteMap(SitemapPopulateEvent $event)

Handle logic of populating sitemap with data

Details

at line 51
__construct(RouterInterface $router, LanguageRepository $languageRepository, BrandRepository $brandRepository)

ProductSiteMapListener constructor.

Parameters

RouterInterface $router
LanguageRepository $languageRepository
BrandRepository $brandRepository

at line 62
static getSubscribedEvents()

at line 73
populateSiteMap(SitemapPopulateEvent $event)

Handle logic of populating sitemap with data

Parameters

SitemapPopulateEvent $event