Freemethod.php 536 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Fedex\Model\Source;
  7. /**
  8. * Fedex freemethod source implementation
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Freemethod extends \Magento\Fedex\Model\Source\Method
  13. {
  14. /**
  15. * {@inheritdoc}
  16. */
  17. public function toOptionArray()
  18. {
  19. $arr = parent::toOptionArray();
  20. array_unshift($arr, ['value' => '', 'label' => __('None')]);
  21. return $arr;
  22. }
  23. }