Esempio n. 1
0
 /**
  * get field label
  *
  * @param $fieldCode
  * @param $scope
  * @return string
  */
 public function getFieldLabel($fieldCode, $scope)
 {
     $field = $this->findField($fieldCode, $scope);
     if ($field) {
         return __($field['label']);
     }
     //look in the depend_labels
     $key = $this->getEntityCode($scope);
     if ($key) {
         $dependLabel = $this->sourceConfig->getConfig('depend_labels/' . $key . '/depend_label/' . $fieldCode . '/label');
         if ($dependLabel) {
             return $dependLabel;
         }
     }
     return $fieldCode;
 }
Esempio n. 2
0
 /**
  * preprocess config file
  *
  * @param array $config
  * @return mixed
  */
 protected function preProcessFileConfig(array $config)
 {
     return $this->sourceConfig->preProcessFileConfig($config);
 }