| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function render($view, array $parameters = array(), Response $response = null) |
||
| 37 | { |
||
| 38 | $blocks = array( |
||
| 39 | 'top' => array(), |
||
| 40 | 'left' => array(), |
||
| 41 | 'center' => array(), |
||
| 42 | 'right' => array(), |
||
| 43 | 'bottom' => array(), |
||
| 44 | ); |
||
| 45 | |||
| 46 | foreach ($this->container->getParameter('sonata.admin.configuration.dashboard_blocks') as $block) { |
||
| 47 | $blocks[$block['position']][] = $block; |
||
| 48 | } |
||
| 49 | |||
| 50 | $completeParameters = [ |
||
| 51 | 'base_template' => $this->getBaseTemplate(), |
||
| 52 | 'admin_pool' => $this->container->get('sonata.admin.pool'), |
||
| 53 | 'blocks' => $blocks, |
||
| 54 | ]; |
||
| 55 | |||
| 56 | return parent::render($view, array_merge($parameters, $completeParameters), $response); // TODO: Change the autogenerated stub |
||
| 57 | } |
||
| 58 | } |
||
| 59 |