Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (UpdateSourceItemBasedOnLegacyStockItem $updateSourceItemBasedOnLegacyStockItem, ResourceConnection $resourceConnection, IsSourceItemManagementAllowedForProductTypeInterface $isSourceItemManagementAllowedForProductType, GetProductTypesBySkusInterface $getProductTypeBySku, GetSkusByProductIdsInterface $getSkusByProductIds, GetDefaultSourceItemBySku $getDefaultSourceItemBySku) | |
aroundSave (ItemResourceModel $subject, callable $proceed, AbstractModel $legacyStockItem) | |
Class provides around Plugin on \Magento\CatalogInventory\Model\ResourceModel\Stock\Item::save to update data in Inventory source item based on legacy Stock Item data
Definition at line 24 of file UpdateSourceItemAtLegacyStockItemSavePlugin.php.
__construct | ( | UpdateSourceItemBasedOnLegacyStockItem | $updateSourceItemBasedOnLegacyStockItem, |
ResourceConnection | $resourceConnection, | ||
IsSourceItemManagementAllowedForProductTypeInterface | $isSourceItemManagementAllowedForProductType, | ||
GetProductTypesBySkusInterface | $getProductTypeBySku, | ||
GetSkusByProductIdsInterface | $getSkusByProductIds, | ||
GetDefaultSourceItemBySku | $getDefaultSourceItemBySku | ||
) |
UpdateSourceItemBasedOnLegacyStockItem | $updateSourceItemBasedOnLegacyStockItem | |
ResourceConnection | $resourceConnection | |
IsSourceItemManagementAllowedForProductTypeInterface | $isSourceItemManagementAllowedForProductType | |
GetProductTypesBySkusInterface | $getProductTypeBySku | |
GetSkusByProductIdsInterface | $getSkusByProductIds | |
GetDefaultSourceItemBySku | $getDefaultSourceItemBySku |
Definition at line 64 of file UpdateSourceItemAtLegacyStockItemSavePlugin.php.
aroundSave | ( | ItemResourceModel | $subject, |
callable | $proceed, | ||
AbstractModel | $legacyStockItem | ||
) |
ItemResourceModel | $subject | |
callable | $proceed | |
AbstractModel | $legacyStockItem |
Definition at line 89 of file UpdateSourceItemAtLegacyStockItemSavePlugin.php.