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
Nooptreq.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config\Source
;
7
12
class
Nooptreq
implements
\Magento\Framework\Option\ArrayInterface
13
{
14
const
VALUE_NO
=
''
;
15
const
VALUE_OPTIONAL
=
'opt'
;
16
const
VALUE_REQUIRED
=
'req'
;
17
21
public
function
toOptionArray
()
22
{
23
return
[
24
[
'value'
=>
self::VALUE_NO
,
'label'
=>
__
(
'No'
)],
25
[
'value'
=>
self::VALUE_OPTIONAL
,
'label'
=>
__
(
'Optional'
)],
26
[
'value'
=>
self::VALUE_REQUIRED
,
'label'
=>
__
(
'Required'
)]
27
];
28
}
29
}
Magento\Config\Model\Config\Source\Nooptreq
Definition:
Nooptreq.php:12
Magento\Config\Model\Config\Source\Nooptreq\toOptionArray
toOptionArray()
Definition:
Nooptreq.php:21
Magento\Config\Model\Config\Source
Magento\Config\Model\Config\Source\Nooptreq\VALUE_REQUIRED
const VALUE_REQUIRED
Definition:
Nooptreq.php:16
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Config\Model\Config\Source\Nooptreq\VALUE_OPTIONAL
const VALUE_OPTIONAL
Definition:
Nooptreq.php:15
Magento\Config\Model\Config\Source\Nooptreq\VALUE_NO
const VALUE_NO
Definition:
Nooptreq.php:14