Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry) | |
afterLoad ($object) | |
validate ($object) | |
![]() | |
setAttribute ($attribute) | |
getAttribute () | |
getType () | |
isStatic () | |
getTable () | |
getEntityIdField () | |
setValueId ($valueId) | |
setEntityValueId ($entity, $valueId) | |
getValueId () | |
getEntityValueId ($entity) | |
getDefaultValue () | |
validate ($object) | |
afterLoad ($object) | |
beforeSave ($object) | |
afterSave ($object) | |
beforeDelete ($object) | |
afterDelete ($object) | |
getAffectedFields ($object) | |
isScalar () | |
Protected Attributes | |
$stockRegistry | |
![]() | |
$_attribute | |
$_valueId | |
$_valueIds = [] | |
$_table | |
$_entityIdField | |
$_defaultValue = null | |
Quantity and Stock Status attribute processing
__construct | ( | \Magento\CatalogInventory\Api\StockRegistryInterface | $stockRegistry | ) |
Construct
\Magento\CatalogInventory\Api\StockRegistryInterface | $stockRegistry |
Definition at line 32 of file Stock.php.
afterLoad | ( | $object | ) |
Set inventory data to custom attribute
Product | $object |
Implements BackendInterface.
Definition at line 44 of file Stock.php.
validate | ( | $object | ) |
Validate
Product | $object |
Definition at line 61 of file Stock.php.