10 use Magento\Downloadable\Model\DownloadableOptionFactory;
53 $request = $this->objectFactory->create();
73 &&
$productOption->getExtensionAttributes()->getDownloadableOption()
76 ->getDownloadableOption()
77 ->getDownloadableLinks();
88 $downloadableOption = $this->downloadableOptionFactory->create();
92 $this->dataObjectHelper->populateWithArray(
94 [
'downloadable_links' =>
$links],
95 \
Magento\Downloadable\Api\Data\DownloadableOptionInterface::class
98 return [
'downloadable_option' => $downloadableOption];
getDownloadableLinks(ProductOptionInterface $productOption)
$downloadableOptionFactory
__construct(DataObjectFactory $objectFactory, DataObjectHelper $dataObjectHelper, DownloadableOptionFactory $downloadableOptionFactory)
convertToProductOption(DataObject $request)
convertToBuyRequest(ProductOptionInterface $productOption)