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
Model
Plugin
ShowOutOfStockConfig.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Model\Plugin
;
7
8
class
ShowOutOfStockConfig
9
{
13
protected
$_eavIndexerProcessor
;
14
18
public
function
__construct
(\
Magento
\Catalog\Model\Indexer\
Product
\Eav\Processor $eavIndexerProcessor)
19
{
20
$this->_eavIndexerProcessor = $eavIndexerProcessor;
21
}
22
31
public
function
afterSave
(\
Magento
\Framework\
App
\
Config
\Value $subject,
$result
)
32
{
33
if
($subject->isValueChanged()) {
34
$this->_eavIndexerProcessor->markIndexerAsInvalid();
35
}
36
return
$result
;
37
}
38
}
Magento\Catalog\Model\Plugin\ShowOutOfStockConfig
Definition:
ShowOutOfStockConfig.php:8
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\App
Magento\TestFramework\ObjectManager\Config
Definition:
Config.php:8
Magento\Catalog\Model\Plugin
Definition:
Log.php:8
Magento\Catalog\Model\Product
Definition:
Product.php:42
Magento\Catalog\Model\Plugin\ShowOutOfStockConfig\__construct
__construct(\Magento\Catalog\Model\Indexer\Product\Eav\Processor $eavIndexerProcessor)
Definition:
ShowOutOfStockConfig.php:18
Magento
Magento\Catalog\Model\Plugin\ShowOutOfStockConfig\$_eavIndexerProcessor
$_eavIndexerProcessor
Definition:
ShowOutOfStockConfig.php:13
Magento\Catalog\Model\Plugin\ShowOutOfStockConfig\afterSave
afterSave(\Magento\Framework\App\Config\Value $subject, $result)
Definition:
ShowOutOfStockConfig.php:31