| Current Path : /home/rtorresani/www/vendor/magento/module-catalog-inventory/Model/Config/Backend/ |
| Current File : //home/rtorresani/www/vendor/magento/module-catalog-inventory/Model/Config/Backend/Managestock.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Catalog Inventory Manage Stock Config Backend Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\CatalogInventory\Model\Config\Backend;
class Managestock extends AbstractValue
{
/**
* After change Catalog Inventory Manage Stock value process
* @return $this
*/
public function afterSave()
{
if ($this->isValueChanged()) {
$this->_stockIndexerProcessor->markIndexerAsInvalid();
}
return parent::afterSave();
}
}