ProductSuggestResultEvent example

new ProductSuggestCriteriaEvent($request$criteria$context),
            ProductEvents::PRODUCT_SUGGEST_CRITERIA
        );

        $result = $this->productListingLoader->load($criteria$context);

        $result = ProductListingResult::createFrom($result);

        $this->processor->process($request$result$context);

        $this->eventDispatcher->dispatch(
            new ProductSuggestResultEvent($request$result$context),
            ProductEvents::PRODUCT_SUGGEST_RESULT
        );

        return new ProductSuggestRouteResponse($result);
    }
}
Home | Imprint | This part of the site doesn't use cookies.