/**
* @return array<string>
*/
private function generateTags(string
$landingPageId, LandingPageRouteResponse
$response, Request
$request, SalesChannelContext
$context): array
{ $tags =
array_merge( $this->tracer->
get(self::
buildName($landingPageId)),
$this->
extractIds($response),
[self::
buildName($landingPageId)] );
$event =
new LandingPageRouteCacheTagsEvent($landingPageId,
$tags,
$request,
$response,
$context, null
);
$this->dispatcher->
dispatch($event);
return array_unique(array_filter($event->
getTags()));
} /**
* @return array<string>
*/
private function extractIds(LandingPageRouteResponse
$response): array
{ $page =
$response->
getLandingPage()->
getCmsPage();