From 65005390dcc26ee0759b3b1b9222a40c899d6140 Mon Sep 17 00:00:00 2001 From: Florkin Date: Mon, 19 Dec 2022 11:13:50 +0100 Subject: [PATCH] Make getImageUrl() protected to allow override for specific needs (custom image management) --- Model/Indexer/Eav.php | 2 +- Model/Indexer/Flat.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/Indexer/Eav.php b/Model/Indexer/Eav.php index 23938fe..029c138 100644 --- a/Model/Indexer/Eav.php +++ b/Model/Indexer/Eav.php @@ -976,7 +976,7 @@ public function executeRow($id): bool * @return mixed * @throws \Magento\Framework\Exception\LocalizedException */ - private function getImageUrl($store, $indexData) + public function getImageUrl($store, $indexData) { /** * Use parent image if appropriate diff --git a/Model/Indexer/Flat.php b/Model/Indexer/Flat.php index e165de3..56c1c68 100644 --- a/Model/Indexer/Flat.php +++ b/Model/Indexer/Flat.php @@ -1016,7 +1016,7 @@ public function executeRow($id) * * @return mixed */ - private function getImageUrl($store, $indexData) + public function getImageUrl($store, $indexData) { /** * Use parent image if appropriate