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-security
Model
Config
Source
ResetMethod.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Security\Model\Config\Source
;
8
13
class
ResetMethod
implements
\Magento\Framework\Option\ArrayInterface
14
{
15
const
OPTION_BY_IP_AND_EMAIL
= 1;
16
const
OPTION_BY_IP
= 2;
17
const
OPTION_BY_EMAIL
= 3;
18
const
OPTION_NONE
= 0;
19
25
public
function
toOptionArray
()
26
{
27
return
[
28
[
'value'
=>
self::OPTION_BY_IP_AND_EMAIL
,
'label'
=>
__
(
'By IP and Email'
)],
29
[
'value'
=>
self::OPTION_BY_IP
,
'label'
=>
__
(
'By IP'
)],
30
[
'value'
=>
self::OPTION_BY_EMAIL
,
'label'
=>
__
(
'By Email'
)],
31
[
'value'
=>
self::OPTION_NONE
,
'label'
=>
__
(
'None'
)],
32
];
33
}
34
40
public
function
toArray
()
41
{
42
return
[
43
self::OPTION_BY_IP_AND_EMAIL =>
__
(
'By IP and Email'
),
44
self::OPTION_BY_IP =>
__
(
'By IP'
),
45
self::OPTION_BY_EMAIL =>
__
(
'By Email'
),
46
self::OPTION_NONE =>
__
(
'None'
),
47
];
48
}
49
}
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Security\Model\Config\Source\ResetMethod\toOptionArray
toOptionArray()
Definition:
ResetMethod.php:25
Magento\Security\Model\Config\Source\ResetMethod\OPTION_BY_EMAIL
const OPTION_BY_EMAIL
Definition:
ResetMethod.php:17
Magento\Security\Model\Config\Source\ResetMethod
Definition:
ResetMethod.php:13
Magento\Security\Model\Config\Source\ResetMethod\toArray
toArray()
Definition:
ResetMethod.php:40
Magento\Security\Model\Config\Source\ResetMethod\OPTION_BY_IP_AND_EMAIL
const OPTION_BY_IP_AND_EMAIL
Definition:
ResetMethod.php:15
Magento\Security\Model\Config\Source\ResetMethod\OPTION_BY_IP
const OPTION_BY_IP
Definition:
ResetMethod.php:16
Magento\Security\Model\Config\Source\ResetMethod\OPTION_NONE
const OPTION_NONE
Definition:
ResetMethod.php:18
Magento\Security\Model\Config\Source
Definition:
ResetMethod.php:7