public function __construct( private readonly CookieProviderInterface
$cookieProvider,
private readonly SystemConfigService
$systemConfigService ) { } #[Route(path: '/cookie/offcanvas', name: 'frontend.cookie.offcanvas', options: ['seo' => false], defaults: ['XmlHttpRequest' => true], methods: ['GET'])]
public function offcanvas(SalesChannelContext
$context): Response
{ $cookieGroups =
$this->cookieProvider->
getCookieGroups();
$cookieGroups =
$this->
filterGoogleAnalyticsCookie($context,
$cookieGroups);
$cookieGroups =
$this->
filterComfortFeaturesCookie($context->
getSalesChannelId(),
$cookieGroups);
$cookieGroups =
$this->
filterGoogleReCaptchaCookie($context->
getSalesChannelId(),
$cookieGroups);
$response =
$this->
renderStorefront('@Storefront/storefront/layout/cookie/cookie-configuration.html.twig',
['cookieGroups' =>
$cookieGroups]);
$response->headers->
set('x-robots-tag', 'noindex,follow'
);
return $response;
}