I have next string, where I get manufacturer attribute:
$brand = $currentProduct->getResource()->getAttribute('manufacturer');
I need to get attribute swatch image. How can I get it?
On product filters I got it:
<img class="object-fit-contain w-100 h-100" src="<?=
$objectManager->get('Magento\Store\Model\StoreManagerInterface')
->getStore()
->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA).'attribute/swatch/'.
$swatchData['swatches'][$option]['value']?>" alt="<?= /* @escapeNotVerified */ $label['label'] ?>">