Esempio n. 1
0
 public function getConfiguration()
 {
     if ($this->dataStore instanceof ConfigurableInterface) {
         return $this->dataStore->getConfiguration();
     }
     $query = new Query();
     $query->setLimit(new LimitNode(1));
     $data = $this->dataStore->query($query);
     $config = [];
     if (count($data) > 0 and isset($data[0])) {
         foreach ($data[0] as $key => $value) {
             $config[] = ['label' => $key, 'field' => $key];
         }
     }
     return $config;
 }