Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-inventory-catalog-admin-ui
Model
OptionSource
SourceItemStatus.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryCatalogAdminUi\Model\OptionSource
;
9
10
use
Magento\Framework\Data\OptionSourceInterface
;
11
use
Magento\InventoryApi\Api\Data\SourceItemInterface
;
12
16
class
SourceItemStatus
implements
OptionSourceInterface
17
{
21
public
function
toOptionArray
()
22
{
23
return
[
24
[
25
'value'
=>
SourceItemInterface::STATUS_IN_STOCK
,
26
'label'
=>
__
(
'In Stock'
),
27
],
28
[
29
'value'
=>
SourceItemInterface::STATUS_OUT_OF_STOCK
,
30
'label'
=>
__
(
'Out of Stock'
),
31
],
32
];
33
}
34
}
__
__()
Definition:
__.php:13
Magento\InventoryCatalogAdminUi\Model\OptionSource
Definition:
SourceItemStatus.php:8
Magento\InventoryApi\Api\Data\SourceItemInterface\STATUS_IN_STOCK
const STATUS_IN_STOCK
Definition:
SourceItemInterface.php:35
Magento\InventoryApi\Api\Data\SourceItemInterface
Definition:
SourceItemInterface.php:20
Magento\InventoryApi\Api\Data\SourceItemInterface\STATUS_OUT_OF_STOCK
const STATUS_OUT_OF_STOCK
Definition:
SourceItemInterface.php:34
Magento\Framework\Data\OptionSourceInterface
Definition:
OptionSourceInterface.php:14
Magento\InventoryCatalogAdminUi\Model\OptionSource\SourceItemStatus
Definition:
SourceItemStatus.php:16
Magento\InventoryCatalogAdminUi\Model\OptionSource\SourceItemStatus\toOptionArray
toOptionArray()
Definition:
SourceItemStatus.php:21