File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
app/code/Magento/Catalog/Model/Product Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,6 @@ public function __construct(
7979 \Magento \Framework \App \ObjectManager::getInstance ()->get (ScopeConfigInterface::class);
8080 }
8181
82- /**
83- * Retrieve URL Instance
84- *
85- * @return \Magento\Framework\UrlInterface
86- */
87- private function getUrlInstance ()
88- {
89- return $ this ->urlFactory ->create ();
90- }
91-
9282 /**
9383 * Retrieve URL in current store
9484 *
@@ -213,6 +203,7 @@ public function getUrl(\Magento\Catalog\Model\Product $product, $params = [])
213203 $ routeParams ['_query ' ] = [];
214204 }
215205
216- return $ this ->getUrlInstance ()->setScope ($ storeId )->getUrl ($ routePath , $ routeParams );
206+ $ url = $ this ->urlFactory ->create ()->setScope ($ storeId );
207+ return $ url ->getUrl ($ routePath , $ routeParams );
217208 }
218209}
You can’t perform that action at this time.
0 commit comments