Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FreeShippingOptions.php
Go to the documentation of this file.
1 <?php
7 
10 
16 {
22  public function toOptionArray()
23  {
24  return [
25  [
26  'value' => 0,
27  'label' => __('No')
28  ],
29  [
30  'value' => Rule::FREE_SHIPPING_ITEM,
31  'label' => __('For matching items only')
32  ],
33  [
34  'value' => Rule::FREE_SHIPPING_ADDRESS,
35  'label' => __('For shipment with matching items')
36  ]
37  ];
38  }
39 }
__()
Definition: __.php:13