Ejemplo n.º 1
0
 /**
  * Gets all configuration data of the specified section
  *
  * @param string $path The path to API section. For example: look-and-feel/grid
  *
  * @return array
  */
 public function getData($path)
 {
     $variables = $this->configProvider->getApiTree($path)->getVariables(true);
     $result = [];
     foreach ($variables as $variable) {
         $var = $variable->toArray();
         $var['value'] = $this->configManager->get($variable->getKey());
         $var = array_merge($var, $this->configManager->getInfo($variable->getKey()));
         $result[] = $var;
     }
     return $result;
 }