Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Freemethod Class Reference
Inheritance diagram for Freemethod:
Method Generic ArrayInterface OptionSourceInterface

Public Member Functions

 toOptionArray ()
 
- Public Member Functions inherited from Generic
 __construct (\Magento\Fedex\Model\Carrier $shippingFedex)
 
 toOptionArray ()
 

Additional Inherited Members

- Protected Attributes inherited from Method
 $_code = 'method'
 
- Protected Attributes inherited from Generic
 $_shippingFedex
 
 $_code = ''
 

Detailed Description

Fedex freemethod source implementation

Author
Magento Core Team core@.nosp@m.mage.nosp@m.ntoco.nosp@m.mmer.nosp@m.ce.co.nosp@m.m

Definition at line 13 of file Freemethod.php.

Member Function Documentation

◆ toOptionArray()

toOptionArray ( )

{Return array of options as value-label pairs

Returns
array Format: array(array('value' => '

', 'label' => '<label>'), ...)}

Implements OptionSourceInterface.

Definition at line 18 of file Freemethod.php.

19  {
20  $arr = parent::toOptionArray();
21  array_unshift($arr, ['value' => '', 'label' => __('None')]);
22  return $arr;
23  }
__()
Definition: __.php:13

The documentation for this class was generated from the following file: