25 private $swatchHelper;
35 \
Magento\Swatches\Helper\Data $swatchHelper
38 $this->swatchHelper = $swatchHelper;
40 parent::__construct($context);
52 $productMedia = $this->swatchHelper->getProductMediaGallery(
53 $this->productModelFactory->create()->load(
$productId)
59 $resultJson->setData($productMedia);