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 
8 class Config
9 {
13  protected $_dataStorage;
14 
18  public function __construct(\Magento\Framework\DataObject\Copy\Config\Data $dataStorage)
19  {
20  $this->_dataStorage = $dataStorage;
21  }
22 
29  public function getFieldsets($path)
30  {
31  return $this->_dataStorage->get($path);
32  }
33 
41  public function getFieldset($name, $root = 'global')
42  {
43  $fieldsets = $this->getFieldsets($root);
44  if (empty($fieldsets)) {
45  return null;
46  }
47  return $fieldsets[$name] ?? null;
48  }
49 }
__construct(\Magento\Framework\DataObject\Copy\Config\Data $dataStorage)
Definition: Config.php:18
getFieldset($name, $root='global')
Definition: Config.php:41
if(!isset($_GET['name'])) $name
Definition: log.php:14