File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ public function getAlgoliaCookieDuration($storeId = null)
308
308
}
309
309
310
310
// --- Products --- //
311
-
311
+
312
312
/**
313
313
* @param $storeId
314
314
* @return array
@@ -2038,15 +2038,12 @@ public function isInstantSearchBoxEnabled($storeId = null)
2038
2038
/**
2039
2039
* @param $storeId
2040
2040
* @return bool
2041
- * @deprecated This method will be moved to the InstantSearch config helper
2041
+ * @deprecated This method has been moved to the InstantSearch config helper and will be removed in a future version
2042
+ * @see \Algolia\AlgoliaSearch\Helper\Configuration\InstantSearchHelper::shouldShowSuggestionsOnNoResultsPage()
2042
2043
*/
2043
2044
public function showSuggestionsOnNoResultsPage ($ storeId = null )
2044
2045
{
2045
- return $ this ->configInterface ->isSetFlag (
2046
- self ::SHOW_SUGGESTIONS_NO_RESULTS ,
2047
- ScopeInterface::SCOPE_STORE ,
2048
- $ storeId
2049
- );
2046
+ return $ this ->instantSearchConfig ->shouldShowSuggestionsOnNoResultsPage ($ storeId );
2050
2047
}
2051
2048
2052
2049
/**
Original file line number Diff line number Diff line change @@ -132,6 +132,15 @@ public function setSorting(
132
132
);
133
133
}
134
134
135
+ public function shouldShowSuggestionsOnNoResultsPage (?int $ storeId = null ): bool
136
+ {
137
+ return $ this ->configInterface ->isSetFlag (
138
+ self ::SHOW_SUGGESTIONS_NO_RESULTS ,
139
+ ScopeInterface::SCOPE_STORE ,
140
+ $ storeId
141
+ );
142
+ }
143
+
135
144
public function isSearchBoxEnabled (?int $ storeId = null ): bool
136
145
{
137
146
return $ this ->isEnabled ($ storeId )
You can’t perform that action at this time.
0 commit comments