Skip to content

Commit

Permalink
Merge branch 'next-13549/fix-guest-wishlist-pagelet' into 'master'
Browse files Browse the repository at this point in the history
NEXT-13549 - Expose whole pagelet object to twig template for guest wishlist route

See merge request shopware/6/product/platform!4366
  • Loading branch information
mitelg committed Feb 2, 2021
2 parents 1962044 + 69ab58d commit 0e4f38f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Storefront/Controller/WishlistController.php
Expand Up @@ -110,7 +110,10 @@ public function guestPagelet(Request $request, SalesChannelContext $context): Re

$pagelet = $this->guestPageletLoader->load($request, $context);

return $this->renderStorefront('@Storefront/storefront/page/wishlist/wishlist-pagelet.html.twig', ['searchResult' => $pagelet->getSearchResult()->getObject()]);
return $this->renderStorefront(
'@Storefront/storefront/page/wishlist/wishlist-pagelet.html.twig',
['page' => $pagelet, 'searchResult' => $pagelet->getSearchResult()->getObject()]
);
}

/**
Expand Down

0 comments on commit 0e4f38f

Please sign in to comment.