WeightUnit.php 526 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Directory\Model\Config\Source;
  7. /**
  8. * Options provider for weight units list
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class WeightUnit implements \Magento\Framework\Option\ArrayInterface
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public function toOptionArray()
  19. {
  20. return [
  21. ['value' => 'lbs', 'label' => __('lbs')],
  22. ['value' => 'kgs', 'label' => __('kgs')]
  23. ];
  24. }
  25. }