Protocol.php 548 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Config\Model\Config\Source\Web;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Protocol implements \Magento\Framework\Option\ArrayInterface
  12. {
  13. /**
  14. * @return array
  15. */
  16. public function toOptionArray()
  17. {
  18. return [
  19. ['value' => '', 'label' => ''],
  20. ['value' => 'http', 'label' => __('HTTP (unsecure)')],
  21. ['value' => 'https', 'label' => __('HTTPS (SSL)')]
  22. ];
  23. }
  24. }