Conditions | 2 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | protected function getTranslatedAttributes(ContentBlock $contentBlock): array |
||
35 | { |
||
36 | return array_reduce($contentBlock->translatable, function ($translatables, $attribute) use ($contentBlock) { |
||
37 | foreach (config('app.locales') as $locale) { |
||
38 | $translatables[$attribute][$locale] = $contentBlock->getTranslation($attribute, $locale); |
||
39 | } |
||
40 | |||
41 | return $translatables; |
||
42 | }, []); |
||
43 | } |
||
44 | } |
||
45 |