SilverStripe\Versioned\GridFieldRestoreAction
This class is a {@link GridField} component that adds a restore action for versioned objects.
Synopsis
class GridFieldRestoreAction
implements
GridField_ColumnProvider,GridField_ActionProvider,GridField_ActionMenuItem
{
- // methods
- public void getTitle()
- public void getGroup()
- public void getExtraData()
- public void augmentColumns()
- public array getColumnAttributes()
- public array getColumnMetadata()
- public array getColumnsHandled()
- public array getActions()
- public GridField_FormAction|null getRestoreAction()
- public string getColumnContent()
- public void handleAction()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_ColumnProvider
- SilverStripe\Forms\GridField\GridField_ActionProvider
- SilverStripe\Forms\GridField\GridField_ActionMenuItem
Methods
public
- augmentColumns() — Add a column 'Delete'
- getActions() — Which GridField actions are this component handling.
- getColumnAttributes() — Return any special attributes that will be used for FormField::create_tag()
- getColumnContent()
- getColumnMetadata() — Add the title
- getColumnsHandled() — Which columns are handled by this component
- getExtraData()
- getGroup()
- getRestoreAction() — Creates a restore action if the action is able to be preformed
- getTitle()
- handleAction() — Handle the actions and apply any changes to the GridField.