Esempio n. 1
0
 /**
  * @return string
  */
 protected function getLinkParams()
 {
     $params = [];
     $wishlistId = $this->wishlistHelper->getWishlist()->getId();
     $customer = $this->wishlistHelper->getCustomer();
     if ($customer) {
         $key = $customer->getId() . ',' . $customer->getEmail();
         $params = ['type' => 'wishlist', 'data' => $this->urlEncoder->encode($key), '_secure' => false];
     }
     if ($wishlistId) {
         $params['wishlist_id'] = $wishlistId;
     }
     return $params;
 }