| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function renderBulkAction(GridViewInterface $gridView, Action $bulkAction, $data = null): string |
||
| 33 | { |
||
| 34 | $type = $bulkAction->getType(); |
||
| 35 | if (!isset($this->bulkActionTemplates[$type])) { |
||
| 36 | throw new \InvalidArgumentException(sprintf('Missing template for bulk action type "%s".', $type)); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $this->twig->render($this->bulkActionTemplates[$type], [ |
||
| 40 | 'grid' => $gridView, |
||
| 41 | 'action' => $bulkAction, |
||
| 42 | 'data' => $data, |
||
| 43 | ]); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |