|
@@ -132,12 +132,12 @@ |
|
|
block discarded – undo |
|
132
|
132
|
private function fieldsWithFallback(array $fields, string $locale): array |
|
133
|
133
|
{ |
|
134
|
134
|
$fallbackLocale = Locale::fallback($locale); |
|
135
|
|
- $file = $this->getFieldValue($fields, 'file', $locale, $fallbackLocale,[]); |
|
|
135
|
+ $file = $this->getFieldValue($fields, 'file', $locale, $fallbackLocale, []); |
|
136
|
136
|
$details = isset($file['details']) ? $file['details'] : []; |
|
137
|
137
|
|
|
138
|
138
|
return [ |
|
139
|
|
- 'title' => $this->getFieldValue($fields, 'title', $locale, $fallbackLocale,''), |
|
140
|
|
- 'description' => $this->getFieldValue($fields, 'description', $locale, $fallbackLocale,''), |
|
|
139
|
+ 'title' => $this->getFieldValue($fields, 'title', $locale, $fallbackLocale, ''), |
|
|
140
|
+ 'description' => $this->getFieldValue($fields, 'description', $locale, $fallbackLocale, ''), |
|
141
|
141
|
'url' => isset($file['url']) ? $file['url'] : '', |
|
142
|
142
|
'file_name' => isset($file['fileName']) ? $file['fileName'] : '', |
|
143
|
143
|
'content_type' => isset($file['contentType']) ? $file['contentType'] : '', |