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-low-quantity-notification
Plugin
InventoryApi
SourceItemsDeleteInterfacePlugin.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryLowQuantityNotification\Plugin\InventoryApi
;
9
10
use
Magento\InventoryApi\Api\SourceItemsDeleteInterface
;
11
use
Magento\InventoryLowQuantityNotificationApi\Api\DeleteSourceItemsConfigurationInterface
;
12
16
class
SourceItemsDeleteInterfacePlugin
17
{
21
private
$deleteSourceItemsConfiguration;
22
28
public
function
__construct
(
29
DeleteSourceItemsConfigurationInterface
$deleteSourceItemsConfiguration
30
) {
31
$this->deleteSourceItemsConfiguration =
$deleteSourceItemsConfiguration
;
32
}
33
42
public
function
afterExecute
(
43
SourceItemsDeleteInterface
$subject,
44
$result
,
45
array
$sourceItems
46
) {
47
$this->deleteSourceItemsConfiguration->execute(
$sourceItems
);
48
}
49
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\InventoryLowQuantityNotification\Plugin\InventoryApi
Definition:
SourceItemsDeleteInterfacePlugin.php:8
Magento\InventoryLowQuantityNotificationApi\Api\DeleteSourceItemsConfigurationInterface
Definition:
DeleteSourceItemsConfigurationInterface.php:15
$sourceItems
$sourceItems
Definition:
source_items.php:76
Magento\InventoryApi\Api\SourceItemsDeleteInterface
Definition:
SourceItemsDeleteInterface.php:18
Magento\InventoryLowQuantityNotification\Plugin\InventoryApi\SourceItemsDeleteInterfacePlugin
Definition:
SourceItemsDeleteInterfacePlugin.php:16
Magento\InventoryLowQuantityNotification\Plugin\InventoryApi\SourceItemsDeleteInterfacePlugin\__construct
__construct(DeleteSourceItemsConfigurationInterface $deleteSourceItemsConfiguration)
Definition:
SourceItemsDeleteInterfacePlugin.php:28
Magento\InventoryLowQuantityNotification\Plugin\InventoryApi\SourceItemsDeleteInterfacePlugin\afterExecute
afterExecute(SourceItemsDeleteInterface $subject, $result, array $sourceItems)
Definition:
SourceItemsDeleteInterfacePlugin.php:42
$deleteSourceItemsConfiguration
$deleteSourceItemsConfiguration
Definition:
source_item_configuration_rollback.php:14