mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update 04_Create_a_GridField_ActionProvider.md
Added missing parameters to boilerplate method
This commit is contained in:
parent
9f7aad3b8f
commit
753b02d915
@ -184,7 +184,7 @@ class GridFieldCustomAction implements GridField_ColumnProvider, GridField_Actio
|
||||
return 'Custom action';
|
||||
}
|
||||
|
||||
public function getCustomAction()
|
||||
public function getCustomAction($gridField, $record)
|
||||
{
|
||||
if(!$record->canEdit()) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user