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
7 
9 
13 class Config extends \Magento\Framework\Config\Data implements \Magento\ImportExport\Model\Import\ConfigInterface
14 {
23  public function __construct(
24  \Magento\ImportExport\Model\Import\Config\Reader $reader,
25  \Magento\Framework\Config\CacheInterface $cache,
26  $cacheId = 'import_config_cache',
27  SerializerInterface $serializer = null
28  ) {
29  parent::__construct($reader, $cache, $cacheId, $serializer);
30  }
31 
37  public function getEntities()
38  {
39  return $this->get('entities');
40  }
41 
48  public function getEntityTypes($entity)
49  {
50  $entities = $this->getEntities();
51  return isset($entities[$entity]) ? $entities[$entity]['types'] : [];
52  }
53 
60  public function getRelatedIndexers($entity)
61  {
62  $entities = $this->getEntities();
63  return isset($entities[$entity]) ? $entities[$entity]['relatedIndexers'] : [];
64  }
65 }
__construct(\Magento\ImportExport\Model\Import\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId='import_config_cache', SerializerInterface $serializer=null)
Definition: Config.php:23
$entity
Definition: element.phtml:22