- /**
- * @param \Magento\Catalog\Model\Product\Gallery\ReadHandler $mediaGalleryReadHandler
- * @param \Magento\Catalog\Model\Product $product
- * @return \Magento\Catalog\Model\Product
- */
- public function afterExecute(
- \Magento\Catalog\Model\Product\Gallery\ReadHandler $mediaGalleryReadHandler,
- \Magento\Catalog\Model\Product $product
- ) {
- $mediaCollection = $this->getMediaEntriesDataCollection(
- $product,
- $mediaGalleryReadHandler->getAttribute()
- );