12 use Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryExtensionFactory;
66 $entry = parent::convertTo(
$product, $rowData);
67 $videoEntry = $this->videoEntryFactory->create();
68 $this->dataObjectHelper->populateWithArray(
71 \
Magento\Framework\Api\Data\VideoContentInterface::class
73 $entryExtension = $this->mediaGalleryEntryExtensionFactory->create();
74 $entryExtension->setVideoContent($videoEntry);
75 $entry->setExtensionAttributes($entryExtension);
84 $dataFromPreviewImageEntry = parent::convertFrom($entry);
93 $entryArray = array_merge($dataFromPreviewImageEntry, $entryArray);
__construct(\Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterfaceFactory $mediaGalleryEntryFactory, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, \Magento\Framework\Api\Data\VideoContentInterfaceFactory $videoEntryFactory, ProductAttributeMediaGalleryEntryExtensionFactory $mediaGalleryEntryExtensionFactory)
$mediaGalleryEntryExtensionFactory
convertFrom(ProductAttributeMediaGalleryEntryInterface $entry)
$mediaGalleryEntryFactory
convertTo(Product $product, array $rowData)