Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DisableGroupedTypePlugin.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
17 {
25  public function aroundExecute(
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 }
aroundExecute(IsSourceItemManagementAllowedForProductTypeInterface $subject, callable $proceed, string $productType)