File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
development/components/grid/columns-reference Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ For more info about possible actions see [Actions reference][actions-reference].
2222use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\ActionColumn;
2323use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;
2424use PrestaShop\PrestaShop\Core\Grid\Action\Row\Type\LinkRowAction;
25+ use PrestaShop\PrestaShop\Core\Grid\Action\Row\RowActionCollection;
2526
2627$actionColumn = new ActionColumn('actions');
2728$actionColumn->setName('Actions');
2829$actionColumn->setOptions([
29- 'actions' => [
30- ((new LinkRowAction('delete'))
30+ 'actions' => (new RowActionCollection())
31+ ->add ((new LinkRowAction('delete'))
3132 ->setIcon('delete')
3233 ->setOptions([
3334 'route' => 'admin_custom_route',
You can’t perform that action at this time.
0 commit comments