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