Password.php 574 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Source model for admin password change mode
  8. *
  9. * @codeCoverageIgnore
  10. */
  11. namespace Magento\User\Model\System\Config\Source;
  12. class Password extends \Magento\Framework\DataObject implements \Magento\Framework\Option\ArrayInterface
  13. {
  14. /**
  15. * Get options for select
  16. *
  17. * @return array
  18. */
  19. public function toOptionArray()
  20. {
  21. return [['value' => 0, 'label' => __('Recommended')], ['value' => 1, 'label' => __('Forced')]];
  22. }
  23. }