| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function respond( |
||
| 35 | ActionConfiguration $configuration, |
||
| 36 | AdminInterface $admin, |
||
| 37 | FormInterface $form, |
||
| 38 | FormInterface $filterForm = null |
||
| 39 | ) { |
||
| 40 | $context = [ |
||
| 41 | 'admin' => $admin, |
||
| 42 | 'form' => $form->createView(), |
||
| 43 | ]; |
||
| 44 | |||
| 45 | if (null !== $filterForm) { |
||
| 46 | $context['filterForm'] = $filterForm->createView(); |
||
| 47 | } |
||
| 48 | |||
| 49 | return $this->render($configuration->getParameter('template'), $context); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |