| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function load(array $identifiers): array |
||
| 43 | { |
||
| 44 | $blocks = $this->blockRepo->getWithLayoutByIdentifiers($identifiers); |
||
| 45 | |||
| 46 | $templateData = []; |
||
| 47 | foreach ($blocks as $block) { |
||
| 48 | $templateData[] = new Data( |
||
| 49 | $block->getIdentifier(), |
||
| 50 | ['title' => $block->getTitle()], |
||
| 51 | ['body' => $block->getBody(), 'layout' => $block->getLayout()] |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 55 | return $templateData; |
||
| 56 | } |
||
| 69 |