| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function respond( |
||
| 23 | ActionConfiguration $configuration, |
||
| 24 | AdminInterface $admin, |
||
| 25 | FormInterface $form, |
||
| 26 | FormInterface $filterForm = null |
||
| 27 | ) { |
||
| 28 | 1 | $context = [ |
|
| 29 | 1 | 'admin' => $admin->getView(), |
|
| 30 | 'form' => $form->createView(), |
||
| 31 | ]; |
||
| 32 | 1 | ||
| 33 | 1 | if (null !== $filterForm) { |
|
| 34 | $context['filterForm'] = $filterForm->createView(); |
||
| 35 | } |
||
| 36 | 1 | ||
| 37 | return $this->render($configuration->getParameter('template'), $context); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |