Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function createFromArray(array $arr): ThemeDescriptorInterface |
||
30 | { |
||
31 | $additionalContext = $arr['additionalContext']; |
||
32 | foreach ($additionalContext as $key => &$value) { |
||
33 | if (!is_array($value)) { |
||
34 | $value = $this->blockUnserializer->createFromArray($value); |
||
35 | } |
||
36 | } |
||
37 | |||
38 | return new SubThemeDescriptor($this->aggregateThemeUnserializer->createFromArray($arr['theme']), $additionalContext); |
||
39 | } |
||
40 | } |