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-rule
Plugin
Indexer
Product
Save
ApplyRulesAfterReindex.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogRule\Plugin\Indexer\Product\Save
;
7
8
use
Magento\CatalogRule\Model\Indexer\Product\ProductRuleProcessor
;
9
use
Magento\Catalog\Model\Product
;
10
14
class
ApplyRulesAfterReindex
15
{
19
protected
$productRuleProcessor
;
20
24
public
function
__construct
(
ProductRuleProcessor
$productRuleProcessor
)
25
{
26
$this->productRuleProcessor =
$productRuleProcessor
;
27
}
28
35
public
function
afterReindex
(
Product
$subject)
36
{
37
$this->productRuleProcessor->reindexRow($subject->
getId
());
38
}
39
}
Magento\Catalog\Model\Product\getId
getId()
Definition:
Product.php:2654
Magento\CatalogRule\Plugin\Indexer\Product\Save\ApplyRulesAfterReindex\afterReindex
afterReindex(Product $subject)
Definition:
ApplyRulesAfterReindex.php:35
Magento\CatalogRule\Plugin\Indexer\Product\Save
Definition:
ApplyRules.php:6
Magento\Catalog\Model\Product
Definition:
Product.php:42
Magento\Catalog\Model\Product
Definition:
ActionTest.php:6
Magento\CatalogRule\Plugin\Indexer\Product\Save\ApplyRulesAfterReindex\$productRuleProcessor
$productRuleProcessor
Definition:
ApplyRulesAfterReindex.php:19
Magento\CatalogRule\Plugin\Indexer\Product\Save\ApplyRulesAfterReindex
Definition:
ApplyRulesAfterReindex.php:14
Magento\CatalogRule\Model\Indexer\Product\ProductRuleProcessor
Definition:
ProductRuleProcessor.php:10
Magento\CatalogRule\Plugin\Indexer\Product\Save\ApplyRulesAfterReindex\__construct
__construct(ProductRuleProcessor $productRuleProcessor)
Definition:
ApplyRulesAfterReindex.php:24