Beispiel #1
0
 /**
  * Save Product downloadable information (links and samples)
  *
  * @param \Magento\Catalog\Model\Product $product
  * @return $this
  * @SuppressWarnings(PHPMD.CyclomaticComplexity)
  * @SuppressWarnings(PHPMD.NPathComplexity)
  * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
  */
 public function save($product)
 {
     parent::save($product);
     if ($data = $product->getDownloadableData()) {
         $this->typeHandler->save($product, $data);
     }
     return $this;
 }