Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-search
Model
Search
PageSizeProvider.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Search\Model\Search
;
9
14
class
PageSizeProvider
15
{
19
private
$engineResolver;
20
24
private
$pageSizeBySearchEngine;
25
30
public
function
__construct
(
31
\
Magento
\
Search
\Model\
EngineResolver
$engineResolver,
32
array $pageSizeBySearchEngine = []
33
) {
34
$this->engineResolver = $engineResolver;
35
$this->pageSizeBySearchEngine = $pageSizeBySearchEngine;
36
}
37
43
public
function
getMaxPageSize
() : int
44
{
45
$searchEngine = $this->engineResolver->getCurrentSearchEngine();
46
47
$pageSize = PHP_INT_MAX;
48
if
(isset($this->pageSizeBySearchEngine[$searchEngine])) {
49
$pageSize = $this->pageSizeBySearchEngine[$searchEngine];
50
}
51
52
return
(
int
)$pageSize;
53
}
54
}
Magento\Search\Model\Search\PageSizeProvider
Definition:
PageSizeProvider.php:14
Magento\Search\Model\Search
Definition:
PageSizeProvider.php:8
Magento\Search\Model\Search\PageSizeProvider\__construct
__construct(\Magento\Search\Model\EngineResolver $engineResolver, array $pageSizeBySearchEngine=[])
Definition:
PageSizeProvider.php:30
Magento\Search\Model\Search\PageSizeProvider\getMaxPageSize
getMaxPageSize()
Definition:
PageSizeProvider.php:43
Magento
Magento\Search\Model\EngineResolver
Definition:
EngineResolver.php:16
Magento\Search\Model\Search
Definition:
Search.php:14