Để lấy lại giá trị đó, bạn cần tiếp theo trong khối hoặc viewModel của bạn ( https://www.yireo.com/blog/1856-viewmodels-in-magento-2 )
...
use Magento\Catalog\Helper\Data as CatalogData;
use Magento\Swatches\Helper\Data;
use Magento\Swatches\Helper\Media;
...
/**
 * @var Data
 */
private $swatchesHelper;
/**
 * @var Media
 */
private $swatchesHelperMedia;
/**
 * @var CatalogData
 */
private $catalogHelperData;
...
/**
 * @return string|null
 */
public function getSwatchImage()
{
    $product = $this->catalogHelperData->getProduct(); //This depends of as you want do it,but you can do it on this way
    if ($product->getSwatchAttribute()) {
        $image = $this->swatchesHelper->getSwatchesByOptionsId([$product->getSwatchAttribute()]);
        if (current($image)['value']) {
            return $this->swatchesHelperMedia->getSwatchAttributeImage('swatch_thumb', current($image)['value']);
        }
    }
    return null;
}
swatch_attribution là mã thuộc tính.