GridFieldRestoreAction
class GridFieldRestoreAction implements GridField_ColumnProvider, GridField_ActionProvider, GridField_ActionMenuItem
This class is a {@link GridField} component that adds a restore action for versioned objects.
Methods
No description
No description
No description
Return any special attributes that will be used for FormField::create_tag()
Creates a restore action if the action is able to be preformed
Handle the actions and apply any changes to the GridField.
Details
at line 25
string
getTitle($gridField, $record, $columnName)
at line 33
string|null
getGroup($gridField, $record, $columnName)
at line 43
array
getExtraData($gridField, $record, $columnName)
at line 56
augmentColumns(GridField $gridField, array $columns)
Add a column 'Delete'
at line 71
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Return any special attributes that will be used for FormField::create_tag()
at line 83
array
getColumnMetadata(GridField $gridField, string $columnName)
Add the title
at line 97
array
getColumnsHandled(GridField $gridField)
Which columns are handled by this component
at line 108
array
getActions(GridField $gridField)
Which GridField actions are this component handling.
at line 121
GridField_FormAction|null
getRestoreAction(GridField $gridField, DataObject $record, string $columnName)
Creates a restore action if the action is able to be preformed
at line 158
string
getColumnContent(GridField $gridField, DataObject $record, string $columnName)
at line 175
handleAction(GridField $gridField, string $actionName, array $arguments, array $data)
Handle the actions and apply any changes to the GridField.