| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function render() { |
||
| 38 | $rows = []; |
||
| 39 | // If the Data Entity row plugin is used, this will be an array of entities |
||
| 40 | // which will pass through Serializer to one of the registered Normalizers, |
||
| 41 | // which will transform it to arrays/scalars. If the Data field row plugin |
||
| 42 | // is used, $rows will not contain objects and will pass directly to the |
||
| 43 | // Encoder. |
||
| 44 | foreach ($this->view->result as $row_index => $row) { |
||
| 45 | $this->view->row_index = $row_index; |
||
| 46 | $rows[] = $this->view->rowPlugin->render($row); |
||
| 47 | } |
||
| 48 | unset($this->view->row_index); |
||
| 49 | |||
| 50 | return $rows; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |