Freemethod.php 436 B

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