Conditions | 4 |
Paths | 8 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function formatFieldConfig($field, $config) |
||
34 | { |
||
35 | $config['id'] = $config['id'] ?? $this->loweredModelName.'-'.$field.'-'.(is_object($this->model) && $this->model->exists ? $this->model->id : 'new-model'); |
||
36 | |||
37 | $config['modelClass'] = is_object($this->model) ? get_class($this->model) : $this->model; |
||
38 | |||
39 | $config['field'] = $field; |
||
40 | |||
41 | $this->config = $config; |
||
42 | } |
||
43 | |||
66 |