1 | <?php |
||
27 | * @var BulkActionGridRendererInterface |
||
28 | */ |
||
29 | private $bulkActionGridRenderer; |
||
30 | |||
31 | /** |
||
32 | * @param BulkActionGridRendererInterface $bulkActionGridRenderer |
||
33 | */ |
||
34 | public function __construct(BulkActionGridRendererInterface $bulkActionGridRenderer) |
||
35 | { |
||
36 | $this->bulkActionGridRenderer = $bulkActionGridRenderer; |
||
37 | } |
||
41 | * @param Action $bulkAction |
||
42 | * @param mixed|null $data |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function renderBulkAction(GridView $gridView, Action $bulkAction, $data = null): string |
||
47 | { |
||
48 | return $this->bulkActionGridRenderer->renderBulkAction($gridView, $bulkAction, $data); |
||
49 | } |
||
53 | */ |
||
54 | public function getName(): string |
||
55 | { |
||
56 | return 'sylius_bulk_action_grid'; |
||
57 | } |