GridFieldGroupDeleteAction
class GridFieldGroupDeleteAction extends GridFieldDeleteAction (View source)
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()
Which GridField actions are this component handling
Handle the actions and apply any changes to the GridField
Set whether to remove or delete the relation
Details
__construct($groupID)
string
getTitle(GridField $gridField, DataObject $record, $columnName)
string|null
getGroup(GridField $gridField, DataObject $record, $columnName)
Get the ActionMenu group (not related to Member group)
array
getExtraData(GridField $gridField, DataObject $record, $columnName)
augmentColumns(GridField $gridField, array $columns)
Add a column 'Delete'
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Return any special attributes that will be used for FormField::create_tag()
array
getColumnMetadata(GridField $gridField, string $columnName)
Add the title
array
getColumnsHandled(GridField $gridField)
Which columns are handled by this component
array
getActions($gridField)
Which GridField actions are this component handling
string
getColumnContent(GridField $gridField, DataObject $record, string $columnName)
handleAction(GridField $gridField, string $actionName, array $arguments, array $data)
Handle the actions and apply any changes to the GridField
bool
getRemoveRelation()
Get whether to remove or delete the relation
$this
setRemoveRelation(bool $removeRelation)
Set whether to remove or delete the relation