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

Public Member Functions

 __construct (Indexer $indexer, array $indexerType=[])
 
 run ()
 

Detailed Description

Run reindex process step.

Definition at line 14 of file ReindexStep.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Indexer  $indexer,
array  $indexerType = [] 
)
Parameters
Indexer$indexer
array$indexerType

Definition at line 32 of file ReindexStep.php.

35  {
36  $this->indexer = $indexer;
37  $this->indexerType = $indexerType;
38  }

Member Function Documentation

◆ run()

run ( )

Run reindex process. All indexers will be refreshed in a case of empty $indexerType array.

Returns
void

Definition at line 46 of file ReindexStep.php.

47  {
48  $this->indexer->reindex($this->indexerType);
49  }

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