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-bundle-product
Plugin
InventoryConfigurationApi
IsSourceItemManagementAllowedForProductType
DisableBundleTypePlugin.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryBundleProduct\Plugin\InventoryConfigurationApi\IsSourceItemManagementAllowedForProductType
;
9
10
use
Magento\Bundle\Model\Product\Type
as BundleType;
11
use
Magento\InventoryConfigurationApi\Model\IsSourceItemManagementAllowedForProductTypeInterface
;
12
16
class
DisableBundleTypePlugin
17
{
25
public
function
aroundExecute
(
26
IsSourceItemManagementAllowedForProductTypeInterface
$subject,
27
callable $proceed,
28
string
$productType
29
): bool {
30
if
($productType === BundleType::TYPE_CODE) {
31
return
false
;
32
}
33
34
return
$proceed($productType);
35
}
36
}
Magento\Bundle\Model\Product\Type
Definition:
Type.php:25
Magento\InventoryBundleProduct\Plugin\InventoryConfigurationApi\IsSourceItemManagementAllowedForProductType\DisableBundleTypePlugin\aroundExecute
aroundExecute(IsSourceItemManagementAllowedForProductTypeInterface $subject, callable $proceed, string $productType)
Definition:
DisableBundleTypePlugin.php:25
Magento\InventoryBundleProduct\Plugin\InventoryConfigurationApi\IsSourceItemManagementAllowedForProductType
Definition:
DisableBundleTypePlugin.php:8
Magento\InventoryConfigurationApi\Model\IsSourceItemManagementAllowedForProductTypeInterface
Definition:
IsSourceItemManagementAllowedForProductTypeInterface.php:15
Magento\InventoryBundleProduct\Plugin\InventoryConfigurationApi\IsSourceItemManagementAllowedForProductType\DisableBundleTypePlugin
Definition:
DisableBundleTypePlugin.php:16