GridFieldArchiveAction
class GridFieldArchiveAction implements GridField_ColumnProvider, GridField_ActionProvider, GridField_ActionMenuItem
This class is a {@link GridField} component that replaces the delete action and adds an archive action for objects.
Methods
No description
No description
No description
Return any special attributes that will be used for FormField::create_tag()
Handle the actions and apply any changes to the GridField
Returns the GridField_FormAction if archive can be performed
Details
at line 25
string
getTitle($gridField, $record, $columnName)
at line 39
string|null
getGroup($gridField, $record, $columnName)
at line 53
array
getExtraData($gridField, $record, $columnName)
at line 71
augmentColumns(GridField $gridField, array $columns)
Add a column 'Actions'
at line 91
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Return any special attributes that will be used for FormField::create_tag()
at line 103
array
getColumnMetadata(GridField $gridField, string $columnName)
Add the title
at line 118
array
getColumnsHandled(GridField $gridField)
Which columns are handled by this component
at line 129
array
getActions(GridField $gridField)
Which GridField actions are this component handling
at line 141
string
getColumnContent(GridField $gridField, DataObject $record, string $columnName)
at line 161
handleAction(GridField $gridField, string $actionName, array $arguments, array $data)
Handle the actions and apply any changes to the GridField
at line 187
GridField_FormAction|null
getArchiveAction(GridField $gridField, DataObject $record)
Returns the GridField_FormAction if archive can be performed