Update 04_Create_a_GridField_ActionProvider.md

Added missing parameters to boilerplate method
This commit is contained in:
Jackson Darlow 2019-08-06 13:36:45 +12:00 committed by GitHub
parent 9f7aad3b8f
commit 753b02d915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;