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
Yesnocustom.php
Go to the documentation of this file.
1
<?php
11
namespace
Magento\Config\Model\Config\Source
;
12
17
class
Yesnocustom
implements
\Magento\Framework\Option\ArrayInterface
18
{
24
public
function
toOptionArray
()
25
{
26
return
[
27
[
'value'
=> 1,
'label'
=>
__
(
'Yes'
)],
28
[
'value'
=> 0,
'label'
=>
__
(
'No'
)],
29
[
'value'
=> 2,
'label'
=>
__
(
'Specified'
)]
30
];
31
}
32
}
Magento\Config\Model\Config\Source
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Yesnocustom
Definition:
Yesnocustom.php:17
Magento\Config\Model\Config\Source\Yesnocustom\toOptionArray
toOptionArray()
Definition:
Yesnocustom.php:24