コード例 #1
0
ファイル: Processor.php プロジェクト: Doability/magento2dev
 /**
  * @param \Ess\M2ePro\Model\Listing\Product $childListingProduct
  * @return bool
  */
 public function tryToRemoveChildListingProduct(\Ess\M2ePro\Model\Listing\Product $childListingProduct)
 {
     if ($childListingProduct->isLocked()) {
         return false;
     }
     if ($childListingProduct->isStoppable()) {
         $this->modelFactory->getObject('StopQueue')->add($childListingProduct);
     }
     $this->getTypeModel()->removeChildListingProduct($childListingProduct->getId());
     return true;
 }