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