mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
32 lines
742 B
PHP
32 lines
742 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
/**
|
|
* Captcha image model
|
|
*
|
|
* @author Magento Core Team <core@magentocommerce.com>
|
|
*/
|
|
namespace Magento\Captcha\Model\Config;
|
|
|
|
class Mode implements \Magento\Framework\Option\ArrayInterface
|
|
{
|
|
/**
|
|
* Get options for captcha mode selection field
|
|
*
|
|
* @return array
|
|
*/
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
['label' => __('Always'), 'value' => \Magento\Captcha\Helper\Data::MODE_ALWAYS],
|
|
[
|
|
'label' => __('After number of attempts to login'),
|
|
'value' => \Magento\Captcha\Helper\Data::MODE_AFTER_FAIL
|
|
]
|
|
];
|
|
}
|
|
}
|