Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function getPresentation(): array |
||
15 | { |
||
16 | $mh = MetaDataStorageHandler::getMetadataHandler(); |
||
17 | $metadata = $mh->getList($this->config); |
||
18 | |||
19 | $translation = ['_' => 'All services']; |
||
20 | foreach ($this->fields as $field) { |
||
21 | if (array_key_exists($field, $metadata)) { |
||
22 | $translation[$field] = $this->template->getEntityDisplayName($metadata[$field]); |
||
23 | } |
||
24 | } |
||
25 | return $translation; |
||
26 | } |
||
28 |