Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Config.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Indexer\Model;
7 
9 
10 class Config implements ConfigInterface
11 {
15  protected $configData;
16 
20  public function __construct(Config\Data $configData)
21  {
22  $this->configData = $configData;
23  }
24 
30  public function getIndexers()
31  {
32  return $this->configData->get();
33  }
34 
41  public function getIndexer($indexerId)
42  {
43  return $this->configData->get($indexerId) ?: [];
44  }
45 }
__construct(Config\Data $configData)
Definition: Config.php:20