Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AllowNegativeMinQtyPlugin.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
11 
13 {
22  public function afterFilter(
23  StockDataFilter $subject,
24  array $result,
25  array $stockData
26  ) {
27  if (isset($stockData['min_qty'])) {
28  $result['min_qty'] = $stockData['min_qty'];
29  }
30  return $result;
31  }
32 }
$stockData
Definition: products.php:27