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-config
Model
Config
Source
Enabledisable.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config\Source
;
7
13
class
Enabledisable
implements
\Magento\Framework\Option\ArrayInterface
14
{
18
const
ENABLE_VALUE
= 1;
19
23
const
DISABLE_VALUE
= 0;
24
28
public
function
toOptionArray
()
29
{
30
return
[
31
[
'value'
=>
self::ENABLE_VALUE
,
'label'
=>
__
(
'Enable'
)],
32
[
'value'
=>
self::DISABLE_VALUE
,
'label'
=>
__
(
'Disable'
)],
33
];
34
}
35
}
Magento\Config\Model\Config\Source\Enabledisable\DISABLE_VALUE
const DISABLE_VALUE
Definition:
Enabledisable.php:23
Magento\Config\Model\Config\Source
Magento\Config\Model\Config\Source\Enabledisable\toOptionArray
toOptionArray()
Definition:
Enabledisable.php:28
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Enabledisable
Definition:
Enabledisable.php:13
Magento\Config\Model\Config\Source\Enabledisable\ENABLE_VALUE
const ENABLE_VALUE
Definition:
Enabledisable.php:18