Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog-inventory
Model
Config
Backend
Backorders.php
Go to the documentation of this file.
1
<?php
12
namespace
Magento\CatalogInventory\Model\Config\Backend
;
13
14
class
Backorders
extends
AbstractValue
15
{
21
public
function
afterSave
()
22
{
23
if
($this->
isValueChanged
() && (
24
$this->
getOldValue
() == \
Magento
\CatalogInventory\Model\
Stock::BACKORDERS_NO
25
|| $this->getValue() == \
Magento
\CatalogInventory\Model\
Stock::BACKORDERS_NO
26
)
27
) {
28
$this->_stockIndexerProcessor->markIndexerAsInvalid();
29
}
30
return
parent::afterSave();
31
}
32
}
Magento\Framework\App\Config\Value\isValueChanged
isValueChanged()
Definition:
Value.php:84
Magento\CatalogInventory\Model\Config\Backend\AbstractValue
Definition:
AbstractValue.php:12
Magento\CatalogInventory\Model\Stock\BACKORDERS_NO
const BACKORDERS_NO
Definition:
Stock.php:37
Magento\CatalogInventory\Model\Config\Backend
Definition:
AbstractValue.php:10
Magento\Framework\App\Config\Value\getOldValue
getOldValue()
Definition:
Value.php:94
Magento\CatalogInventory\Model\Config\Backend\Backorders\afterSave
afterSave()
Definition:
Backorders.php:21
Magento
Magento\CatalogInventory\Model\Config\Backend\Backorders
Definition:
Backorders.php:14