File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Store/Url/Plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Store \Url \Plugin ;
7
7
8
8
use \Magento \Store \Model \Store ;
9
+ use \Magento \Store \Api \Data \StoreInterface ;
9
10
use \Magento \Store \Model \ScopeInterface as StoreScopeInterface ;
10
11
11
12
/**
@@ -65,9 +66,9 @@ public function beforeSetRouteParams(
65
66
unset($ data ['_scope ' ]);
66
67
}
67
68
if (isset ($ data ['_scope_to_url ' ]) && (bool )$ data ['_scope_to_url ' ] === true ) {
68
- /** @var Store $currentScope */
69
+ /** @var StoreInterface $currentScope */
69
70
$ currentScope = $ subject ->getScope ();
70
- $ storeCode = $ currentScope && $ currentScope instanceof Store ?
71
+ $ storeCode = $ currentScope && $ currentScope instanceof StoreInterface ?
71
72
$ currentScope ->getCode () :
72
73
$ this ->storeManager ->getStore ()->getCode ();
73
74
You can’t perform that action at this time.
0 commit comments