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

Public Member Functions

 toOptionArray ()
 

Detailed Description

Back orders source class @api

Since
100.0.2
Deprecated:
2.3.0 Replaced with Multi Source Inventory https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html

Definition at line 17 of file Backorders.php.

Member Function Documentation

◆ toOptionArray()

toOptionArray ( )
Returns
array

Implements OptionSourceInterface.

Definition at line 22 of file Backorders.php.

23  {
24  return [
25  ['value' => \Magento\CatalogInventory\Model\Stock::BACKORDERS_NO, 'label' => __('No Backorders')],
26  [
28  'label' => __('Allow Qty Below 0')
29  ],
30  [
32  'label' => __('Allow Qty Below 0 and Notify Customer')
33  ]
34  ];
35  }
__()
Definition: __.php:13

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