mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
28 lines
526 B
PHP
28 lines
526 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
namespace Magento\Directory\Model\Config\Source;
|
|
|
|
/**
|
|
* Options provider for weight units list
|
|
*
|
|
* @api
|
|
* @since 100.0.2
|
|
*/
|
|
class WeightUnit implements \Magento\Framework\Option\ArrayInterface
|
|
{
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
['value' => 'lbs', 'label' => __('lbs')],
|
|
['value' => 'kgs', 'label' => __('kgs')]
|
|
];
|
|
}
|
|
}
|