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
6 declare(strict_types=1);
7 
9 
11 use Magento\Framework\Indexer\IndexerInterfaceFactory;
14 
22 class Action implements ActionInterface
23 {
27  private $indexerFactory;
28 
32  public function __construct(IndexerInterfaceFactory $indexerFactory)
33  {
34  $this->indexerFactory = $indexerFactory;
35  }
36 
43  public function execute($ids)
44  {
46  $indexer = $this->indexerFactory->create();
48  $indexer->reindexList($ids);
49  }
50 }
__construct(IndexerInterfaceFactory $indexerFactory)
Definition: Action.php:32