Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function transform(ContentBlock $contentBlock) |
||
11 | { |
||
12 | $attributes = [ |
||
13 | 'id' => $contentBlock->id, |
||
14 | 'type' => $contentBlock->type, |
||
15 | 'orderColumn' => $contentBlock->order_column, |
||
16 | ]; |
||
17 | |||
18 | return array_merge( |
||
19 | $attributes, |
||
20 | $this->getMediaAttributes($contentBlock), |
||
21 | $this->getTranslatedAttributes($contentBlock) |
||
22 | ); |
||
23 | } |
||
24 | |||
45 |