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 GenericInterface OptionSourceInterface

Public Member Functions

 toOptionArray ()
 
- Public Member Functions inherited from Generic
 __construct (Carrier $shippingUsps)
 
 toOptionArray ()
 

Additional Inherited Members

- Protected Attributes inherited from Method
 $code = 'method'
 
- Protected Attributes inherited from Generic
 $shippingUsps
 
 $code = ''
 

Detailed Description

Freemethod source

Definition at line 11 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 16 of file Freemethod.php.

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

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