Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (StockConfigurationInterface $stockConfiguration, StockRegistryInterface $stockRegistry, StockItemValidator $stockItemValidator=null) | |
execute (EventObserver $observer) | |
![]() | |
execute (Observer $observer) | |
Saves stock data from a product to the Stock Item
Definition at line 25 of file SaveInventoryDataObserver.php.
__construct | ( | StockConfigurationInterface | $stockConfiguration, |
StockRegistryInterface | $stockRegistry, | ||
StockItemValidator | $stockItemValidator = null |
||
) |
StockConfigurationInterface | $stockConfiguration | |
StockRegistryInterface | $stockRegistry | |
StockItemValidator | $stockItemValidator |
Definition at line 81 of file SaveInventoryDataObserver.php.
execute | ( | EventObserver | $observer | ) |
Saving product inventory data
Takes data from the stock_data property of a product and sets it to Stock Item. Validates and saves Stock Item object.
EventObserver | $observer |
Definition at line 100 of file SaveInventoryDataObserver.php.