Example #1
0
 /**
  * Retrieve gallery url
  *
  * @param null|\Magento\Framework\DataObject $image
  * @return string
  */
 public function getGalleryUrl($image = null)
 {
     $params = ['id' => $this->getProduct()->getId()];
     if ($image) {
         $params['image'] = $image->getValueId();
     }
     return $this->getUrl('catalog/product/gallery', $params);
 }