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 {
15  protected $dataStorage;
16 
22  public function __construct(\Magento\Framework\Config\DataInterface $dataStorage)
23  {
24  $this->dataStorage = $dataStorage;
25  }
26 
30  public function getDeclaredFeatures($searchEngine)
31  {
32  return $this->dataStorage->get($searchEngine, []);
33  }
34 
38  public function isFeatureSupported($featureName, $searchEngine)
39  {
40  $features = $this->getDeclaredFeatures($searchEngine);
41  return in_array(strtolower($featureName), $features);
42  }
43 }
__construct(\Magento\Framework\Config\DataInterface $dataStorage)
Definition: Config.php:22
isFeatureSupported($featureName, $searchEngine)
Definition: Config.php:38