public function __construct(private readonly LandingPageLoader
$landingPageLoader) { } #[Route(path: '/landingPage/{landingPageId}', name: 'frontend.landing.page', defaults: ['_httpCache' => true], methods: ['GET'])]
public function index(SalesChannelContext
$context, Request
$request): Response
{ $page =
$this->landingPageLoader->
load($request,
$context);
$this->
hook(new LandingPageLoadedHook($page,
$context));
return $this->
renderStorefront('@Storefront/storefront/page/content/index.html.twig',
['page' =>
$page]);
}}