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
Plugin
ReindexUpdatedProducts.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogInventory\Model\Plugin
;
7
8
use
Magento\Catalog\Model\Product\Action
as ProductAction;
9
13
class
ReindexUpdatedProducts
14
{
18
private
$indexerProcessor;
19
23
public
function
__construct
(\
Magento
\CatalogInventory\Model\Indexer\
Stock
\
Processor
$indexerProcessor)
24
{
25
$this->indexerProcessor =
$indexerProcessor
;
26
}
27
38
public
function
afterUpdateAttributes
(
39
ProductAction $subject,
40
ProductAction $action,
41
$productIds
42
) {
43
$this->indexerProcessor->reindexList(array_unique(
$productIds
));
44
return
$action;
45
}
46
}
Magento\Catalog\Model\Product\Action
Definition:
Action.php:17
Magento\CatalogInventory\Model\Plugin
Definition:
ProductSearchTest.php:9
Magento\CatalogInventory\Helper\Stock
Definition:
Stock.php:26
Magento\CatalogInventory\Model\Plugin\ReindexUpdatedProducts\__construct
__construct(\Magento\CatalogInventory\Model\Indexer\Stock\Processor $indexerProcessor)
Definition:
ReindexUpdatedProducts.php:23
Magento\Catalog\Model\Indexer\Product\Price\Processor
Definition:
Processor.php:12
Magento
Magento\CatalogInventory\Model\Plugin\ReindexUpdatedProducts\afterUpdateAttributes
afterUpdateAttributes(ProductAction $subject, ProductAction $action, $productIds)
Definition:
ReindexUpdatedProducts.php:38
$indexerProcessor
$indexerProcessor
Definition:
enable_catalog_product_reindex_schedule_rollback.php:11
Magento\CatalogInventory\Model\Plugin\ReindexUpdatedProducts
Definition:
ReindexUpdatedProducts.php:13
$productIds
$productIds
Definition:
product_with_multiple_options.php:11