Level51\DataObjectActions\DataObjectActionGridFieldItemRequest
GridField item request extension to add custom action on a per DataObject base.
Synopsis
class DataObjectActionGridFieldItemRequest
extends Extension
{
- // constants
- const CUSTOM_ACTION_NAME = 'customDataObjectAction';
- // members
- private static array $allowed_actions = ;
- // methods
- public mixed|HTTPResponse|void customDataObjectAction()
- public void updateFormActions()
- protected mixed|HTTPResponse redirectAfterSave()
- protected Controller|RequestHandler getToplevelController()
Hierarchy
Extends
- SilverStripe\Core\Extension
Constants
Name | Value |
---|---|
CUSTOM_ACTION_NAME | 'customDataObjectAction' |
Members
private
- $allowed_actions
Methods
protected
- getToplevelController() — Same as in {@see GridFieldDetailForm_ItemRequest}
- redirectAfterSave() — Same as in {@see GridFieldDetailForm_ItemRequest}
public
- customDataObjectAction() — Handler for all custom actions.
- updateFormActions() — Hook into the getFormActions method to add our custom form actions.