Mode.php 742 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Captcha image model
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Captcha\Model\Config;
  12. class Mode implements \Magento\Framework\Option\ArrayInterface
  13. {
  14. /**
  15. * Get options for captcha mode selection field
  16. *
  17. * @return array
  18. */
  19. public function toOptionArray()
  20. {
  21. return [
  22. ['label' => __('Always'), 'value' => \Magento\Captcha\Helper\Data::MODE_ALWAYS],
  23. [
  24. 'label' => __('After number of attempts to login'),
  25. 'value' => \Magento\Captcha\Helper\Data::MODE_AFTER_FAIL
  26. ]
  27. ];
  28. }
  29. }