Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
ReindexAllInvalid Class Reference

Public Member Functions

 __construct (\Magento\Indexer\Model\Processor $processor)
 
 execute ()
 

Protected Attributes

 $processor
 

Detailed Description

Definition at line 8 of file ReindexAllInvalid.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Indexer\Model\Processor  $processor)
Parameters
\Magento\Indexer\Model\Processor$processor

Definition at line 18 of file ReindexAllInvalid.php.

20  {
21  $this->processor = $processor;
22  }

Member Function Documentation

◆ execute()

execute ( )

Regenerate indexes for all invalid indexers

Returns
void

Definition at line 29 of file ReindexAllInvalid.php.

30  {
31  $this->processor->reindexAllInvalid();
32  }

Field Documentation

◆ $processor

$processor
protected

Definition at line 13 of file ReindexAllInvalid.php.


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