Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Action.php
Go to the documentation of this file.
1 <?php
7 
10 use Magento\Framework\Indexer\IndexerInterfaceFactory;
11 
15 class Action implements ActionInterface
16 {
20  private $indexerFactory;
21 
25  public function __construct(IndexerInterfaceFactory $indexerFactory)
26  {
27  $this->indexerFactory = $indexerFactory;
28  }
29 
37  public function execute($ids)
38  {
40  $indexer = $this->indexerFactory->create()->load(Fulltext::INDEXER_ID);
41  $indexer->reindexList($ids);
42  }
43 }
__construct(IndexerInterfaceFactory $indexerFactory)
Definition: Action.php:25