Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
InvalidateIndex Class Reference
Inheritance diagram for InvalidateIndex:
UpdateIndexInterface

Public Member Functions

 __construct (IndexerRegistry $indexerRegistry)
 
 update (GroupInterface $group, $isGroupNew)
 

Detailed Description

Invalidate price index

Definition at line 14 of file InvalidateIndex.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( IndexerRegistry  $indexerRegistry)

Constructor

Parameters
IndexerRegistry$indexerRegistry

Definition at line 26 of file InvalidateIndex.php.

28  {
29  $this->indexerRegistry = $indexerRegistry;
30  }

Member Function Documentation

◆ update()

update ( GroupInterface  $group,
  $isGroupNew 
)

{Update price index

Parameters
GroupInterface$group
bool$isGroupNew
Returns
void
Since
102.0.0
} @SuppressWarnings(PHPMD.UnusedFormalParameter)

Implements UpdateIndexInterface.

Definition at line 36 of file InvalidateIndex.php.

37  {
38  $this->indexerRegistry->get(Processor::INDEXER_ID)->invalidate();
39  }

The documentation for this class was generated from the following file: