public function detectSalesChannelEntryPoints(EntityWrittenContainerEvent
$event): void
{ $properties =
['navigationCategoryId', 'footerCategoryId', 'serviceCategoryId'
];
$salesChannelIds =
$event->
getPrimaryKeysWithPropertyChange(SalesChannelDefinition::ENTITY_NAME,
$properties);
if (empty($salesChannelIds)) { return;
} $this->indexerRegistry->
sendIndexingMessage(['category.indexer', 'product.indexer'
]);
} /**
* @return array<string, string|array{0: string, 1: int}|list<array{0: string, 1?: int}>>
*/
public static function getSubscribedEvents(): array
{ return [ ProductEvents::PRODUCT_INDEXER_EVENT => 'updateProductUrls',
CategoryEvents::CATEGORY_INDEXER_EVENT => 'updateCategoryUrls',
LandingPageEvents::LANDING_PAGE_INDEXER_EVENT => 'updateLandingPageUrls',