mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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';
|
return 'Custom action';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCustomAction()
|
public function getCustomAction($gridField, $record)
|
||||||
{
|
{
|
||||||
if(!$record->canEdit()) return;
|
if(!$record->canEdit()) return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user