public function load(Request
$request, SalesChannelContext
$context, CustomerEntity
$customer): WishlistPage
{ $criteria =
$this->
createCriteria($request);
$this->eventDispatcher->
dispatch(new WishListPageProductCriteriaEvent($criteria,
$context,
$request));
$page =
$this->genericLoader->
load($request,
$context);
$page = WishlistPage::
createFrom($page);
try { $page->
setWishlist($this->wishlistLoadRoute->
load($request,
$context,
$criteria,
$customer));
} catch (CustomerWishlistNotFoundException
) { $page->
setWishlist( new LoadWishlistRouteResponse( new CustomerWishlistEntity(),
new EntitySearchResult( 'wishlist',
0,
new ProductCollection(),
null,
$criteria,
$context->
getContext() )