CodeExplorer GuestWishlistPageletLoadedEvent example
new ProductCollection(),
null,
$criteria,
$context->
getContext() ));
} else { $response =
$this->productListRoute->
load($criteria,
$context);
} $page->
setSearchResult($response);
$this->eventDispatcher->
dispatch(new GuestWishlistPageletLoadedEvent($page,
$context,
$request));
return $page;
} private function createCriteria(Request
$request, SalesChannelContext
$context): Criteria
{ $criteria =
new Criteria();
$productIds =
$request->
get('productIds',
[]);
if (!\
is_array($productIds)) {