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)
vendor
magento
module-catalog
Model
Config
Source
GridPerPage.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Model\Config\Source
;
7
13
class
GridPerPage
implements
\Magento\Framework\Option\ArrayInterface
14
{
20
protected
$_options
;
21
27
public
function
__construct
($perPageValues)
28
{
29
$this->_options = explode(
','
, $perPageValues);
30
}
31
35
public
function
toOptionArray
()
36
{
37
$result
= [];
38
foreach
($this->_options as
$option
) {
39
$result
[] = [
'value'
=>
$option
,
'label'
=>
$option
];
40
}
41
return
$result
;
42
}
43
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Catalog\Model\Config\Source
Definition:
Category.php:6
Magento\Catalog\Model\Config\Source\GridPerPage\__construct
__construct($perPageValues)
Definition:
GridPerPage.php:27
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Catalog\Model\Config\Source\GridPerPage\$_options
$_options
Definition:
GridPerPage.php:20
Magento\Catalog\Model\Config\Source\GridPerPage
Definition:
GridPerPage.php:13
Magento\Catalog\Model\Config\Source\GridPerPage\toOptionArray
toOptionArray()
Definition:
GridPerPage.php:35
$option
$option
Definition:
product_configurable_with_single_child.php:38