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
11 
12 class Config implements \Magento\Framework\View\Design\Theme\Customization\ConfigInterface
13 {
17  const XML_PATH_CUSTOM_FILES = 'theme/customization';
18 
22  protected $config;
23 
28  {
29  $this->config = $config;
30  }
31 
35  public function getFileTypes()
36  {
37  $types = [];
38  $convertNode = $this->config->getValue(self::XML_PATH_CUSTOM_FILES, 'default');
39  if ($convertNode) {
40  foreach ($convertNode as $name => $value) {
41  $types[$name] = $value;
42  }
43  }
44  return $types;
45  }
46 }
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $config)
Definition: Config.php:27
$value
Definition: gender.phtml:16
if(!isset($_GET['name'])) $name
Definition: log.php:14