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
Indexer
Product
Price
InvalidateIndex.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Model\Indexer\Product\Price
;
7
8
use
Magento\Customer\Api\Data\GroupInterface
;
9
use
Magento\Framework\Indexer\IndexerRegistry
;
10
14
class
InvalidateIndex
implements
UpdateIndexInterface
15
{
19
private
$indexerRegistry;
20
26
public
function
__construct
(
27
IndexerRegistry
$indexerRegistry
28
) {
29
$this->indexerRegistry =
$indexerRegistry
;
30
}
31
36
public
function
update
(
GroupInterface
$group
, $isGroupNew)
37
{
38
$this->indexerRegistry->get(
Processor::INDEXER_ID
)->invalidate();
39
}
40
}
Magento\Catalog\Model\Indexer\Product\Price\UpdateIndexInterface
Definition:
UpdateIndexInterface.php:16
Magento\Catalog\Model\Indexer\Product\Price\InvalidateIndex
Definition:
InvalidateIndex.php:14
Magento\Catalog\Model\Indexer\Product\Price
$group
$group
Definition:
sections.phtml:16
Magento\Catalog\Model\Indexer\Product\Price\Processor\INDEXER_ID
const INDEXER_ID
Definition:
Processor.php:17
Magento\Catalog\Model\Indexer\Product\Price\InvalidateIndex\update
update(GroupInterface $group, $isGroupNew)
Definition:
InvalidateIndex.php:36
Magento\Catalog\Model\Indexer\Product\Price\InvalidateIndex\__construct
__construct(IndexerRegistry $indexerRegistry)
Definition:
InvalidateIndex.php:26
$indexerRegistry
$indexerRegistry
Definition:
product_different_store_prices.php:20
Magento\Framework\Indexer\IndexerRegistry
Definition:
IndexerRegistry.php:12
Magento\Customer\Api\Data\GroupInterface
Definition:
GroupInterface.php:17