Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Managestock.php
Go to the documentation of this file.
1 <?php
13 
15 {
20  public function afterSave()
21  {
22  if ($this->isValueChanged()) {
23  $this->_stockIndexerProcessor->markIndexerAsInvalid();
24  }
25  return parent::afterSave();
26  }
27 }