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(
79
79
\Magento \Framework \App \ObjectManager::getInstance ()->get (ScopeConfigInterface::class);
80
80
}
81
81
82
- /**
83
- * Retrieve URL Instance
84
- *
85
- * @return \Magento\Framework\UrlInterface
86
- */
87
- private function getUrlInstance ()
88
- {
89
- return $ this ->urlFactory ->create ();
90
- }
91
-
92
82
/**
93
83
* Retrieve URL in current store
94
84
*
@@ -213,6 +203,7 @@ public function getUrl(\Magento\Catalog\Model\Product $product, $params = [])
213
203
$ routeParams ['_query ' ] = [];
214
204
}
215
205
216
- return $ this ->getUrlInstance ()->setScope ($ storeId )->getUrl ($ routePath , $ routeParams );
206
+ $ url = $ this ->urlFactory ->create ()->setScope ($ storeId );
207
+ return $ url ->getUrl ($ routePath , $ routeParams );
217
208
}
218
209
}
You can’t perform that action at this time.
0 commit comments