File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
use Algolia \AlgoliaSearch \Helper \Entity \ProductHelper ;
11
11
use Algolia \AlgoliaSearch \Helper \Entity \SuggestionHelper ;
12
12
use Algolia \AlgoliaSearch \Helper \LandingPageHelper ;
13
+ use Algolia \AlgoliaSearch \Model \LandingPage as LandingPageModel ;
13
14
use Algolia \AlgoliaSearch \Registry \CurrentCategory ;
14
15
use Algolia \AlgoliaSearch \Registry \CurrentProduct ;
15
16
use Algolia \AlgoliaSearch \Service \Product \SortingTransformer ;
@@ -215,7 +216,7 @@ protected function getAddToCartUrl($additional = []): string
215
216
return $ this ->_urlBuilder ->getUrl ('checkout/cart/add ' , $ routeParams );
216
217
}
217
218
218
- protected function getCurrentLandingPage (): LandingPage |null |false
219
+ protected function getCurrentLandingPage (): LandingPageModel |null |false
219
220
{
220
221
$ landingPageId = $ this ->getRequest ()->getParam ('landing_page_id ' );
221
222
if (!$ landingPageId ) {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function __construct(
59
59
parent ::__construct ($ context );
60
60
}
61
61
62
- public function getLandingPage ($ pageId )
62
+ public function getLandingPage ($ pageId ): LandingPage | null | false
63
63
{
64
64
if ($ pageId !== null && $ pageId !== $ this ->landingPage ->getId ()) {
65
65
$ this ->landingPage ->setStoreId ($ this ->storeManager ->getStore ()->getId ());
You can’t perform that action at this time.
0 commit comments