GridFieldGroupDeleteAction
class GridFieldGroupDeleteAction extends GridFieldDeleteAction
Adds a delete action for the gridfield to remove a relationship from group.
This is a special case where it captures whether the current user is the record being removed and prevents removal from happening.
Methods
No description
Get the ActionMenu group (not related to Member group)
Return any special attributes that will be used for FormField::create_tag()
Handle the actions and apply any changes to the GridField
Set whether to remove or delete the relation
Details
at line 23
__construct($groupID)
in GridFieldDeleteAction at line 51
string
getTitle($gridField, $record, $columnName)
at line 51
string|null
getGroup($gridField, $record, $columnName)
Get the ActionMenu group (not related to Member group)
in GridFieldDeleteAction at line 79
array
getExtraData($gridField, $record, $columnName)
in GridFieldDeleteAction at line 97
augmentColumns(GridField $gridField, array $columns)
Add a column 'Delete'
in GridFieldDeleteAction at line 112
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Return any special attributes that will be used for FormField::create_tag()
in GridFieldDeleteAction at line 124
array
getColumnMetadata(GridField $gridField, string $columnName)
Add the title
in GridFieldDeleteAction at line 137
array
getColumnsHandled(GridField $gridField)
Which columns are handled by this component
in GridFieldDeleteAction at line 148
array
getActions(GridField $gridField)
Which GridField actions are this component handling
at line 36
string
getColumnContent(GridField $gridField, DataObject $record, string $columnName)
at line 69
handleAction(GridField $gridField, string $actionName, array $arguments, array $data)
Handle the actions and apply any changes to the GridField
in GridFieldDeleteAction at line 262
bool
getRemoveRelation()
Get whether to remove or delete the relation
in GridFieldDeleteAction at line 272
$this
setRemoveRelation(bool $removeRelation)
Set whether to remove or delete the relation