Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GetDefaultValues.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
17 {
21  const XML_PATH_NOTIFY_STOCK_QTY = 'cataloginventory/item_options/notify_stock_qty';
22 
26  private $scopeConfig;
27 
31  public function __construct(
32  ScopeConfigInterface $scopeConfig
33  ) {
34  $this->scopeConfig = $scopeConfig;
35  }
36 
42  public function execute(string $sourceCode, string $sku) : array
43  {
44  $inventoryNotifyQty = (float)$this->scopeConfig->getValue(self::XML_PATH_NOTIFY_STOCK_QTY);
45 
46  $defaultConfiguration = [
50  ];
51  return $defaultConfiguration;
52  }
53 }
$sourceCode
Definition: inventory.phtml:11