Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfigProvider.php
Go to the documentation of this file.
1 <?php
7 
12 {
26  private $config;
27 
31  public function __construct(array $config = [])
32  {
33  $this->config = $config;
34  }
35 
51  public function getConfigs($currentMode, $targetMode)
52  {
53  if (isset($this->config[$currentMode][$targetMode])) {
54  return $this->config[$currentMode][$targetMode];
55  }
56  return [];
57  }
58 }
getConfigs($currentMode, $targetMode)