File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/PageBuilder/Model/Stage Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Framework \View \Design \Theme \ThemeProviderInterface ;
14
14
use Magento \Framework \View \DesignInterface ;
15
15
use Magento \Store \Model \App \Emulation ;
16
+ use Magento \Store \Model \ScopeInterface ;
16
17
use Magento \Store \Model \StoreManagerInterface ;
17
18
18
19
/**
@@ -112,7 +113,7 @@ public function startPreviewMode($callback, $storeId = null)
112
113
function () use ($ callback ) {
113
114
$ themeId = $ this ->scopeConfig ->getValue (
114
115
'design/theme/theme_id ' ,
115
- \ Magento \ Store \ Model \ ScopeInterface::SCOPE_STORE
116
+ ScopeInterface::SCOPE_STORE
116
117
);
117
118
$ theme = $ this ->themeProvider ->getThemeById ($ themeId );
118
119
$ this ->design ->setDesignTheme ($ theme , $ this ->getPreviewArea ());
@@ -150,12 +151,12 @@ private function getStoreId(): ?int
150
151
$ storeId = null ;
151
152
$ store = $ this ->storeManager ->getDefaultStoreView ();
152
153
if ($ store ) {
153
- $ storeId = $ store ->getId ();
154
+ $ storeId = ( int ) $ store ->getId ();
154
155
} else {
155
156
$ stores = $ this ->storeManager ->getStores ();
156
157
if (count ($ stores )) {
157
158
$ store = array_shift ($ stores );
158
- $ storeId = $ store ->getId ();
159
+ $ storeId = ( int ) $ store ->getId ();
159
160
}
160
161
}
161
162
You can’t perform that action at this time.
0 commit comments