62 if ($this->wishlist) {
67 $wishlistId = $this->request->getParam(
'wishlist_id');
69 $customerId = $this->customerSession->getCustomerId();
70 $wishlist = $this->wishlistFactory->create();
83 throw new \Magento\Framework\Exception\NoSuchEntityException(
84 __(
'The requested Wish List doesn\'t exist.')
87 }
catch (\
Magento\Framework\Exception\NoSuchEntityException $e) {
88 $this->messageManager->addError($e->getMessage());
90 }
catch (\Exception $e) {
91 $this->messageManager->addException($e,
__(
'We can\'t create the Wish List right now.'));
elseif(isset( $params[ 'redirect_parent']))
__construct(\Magento\Wishlist\Model\WishlistFactory $wishlistFactory, \Magento\Customer\Model\Session $customerSession, \Magento\Framework\Message\ManagerInterface $messageManager, RequestInterface $request)
getWishlist($wishlistId=null)