GridFieldBulkManager
class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnProvider, GridField_URLHandler (View source)
GridField component for editing attached models in bulk.
Properties
protected | array | $config | component configuration. |
Methods
GridFieldBulkManager component constructor.
Returns one $config parameter of the full $config.
Lets you add custom bulk actions to the bulk manager interface.
Removes a bulk actions from the bulk manager interface.
Sets the column's content.
Set the column's HTML attributes.
Pass control over to the RequestHandler loop through the handlers provided in config['actions'] and find matching url_handlers.
Details
__construct(array $editableFields = null, bool $defaultActions = true)
GridFieldBulkManager component constructor.
setConfig(string $reference, mixed $value)
Sets the component configuration parameter.
mixed
getConfig(string $reference = false)
Returns one $config parameter of the full $config.
GridFieldBulkManager
addBulkAction(string $name, string $label = null, string $handler = null, array $config = null)
Lets you add custom bulk actions to the bulk manager interface.
GridFieldBulkManager
removeBulkAction(string $name)
Removes a bulk actions from the bulk manager interface.
augmentColumns(GridField $gridField, array $columns)
Add bulk select column.
array
getColumnsHandled(GridField $gridField)
Which columns are handled by the component.
string
getColumnContent(GridField $gridField, DataObject $record, string $columnName)
Sets the column's content.
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Set the column's HTML attributes.
array
getColumnMetadata(GridField $gridField, string $columnName)
Set the column's meta data.
array
getHTMLFragments($gridField)
No description
getURLHandlers($gridField)
Returns an action => handler list.
mixed
handleBulkAction(GridField $gridField, SS_HTTPRequest $request)
Pass control over to the RequestHandler loop through the handlers provided in config['actions'] and find matching url_handlers.
$url_handlers rule should not use wildcards like '$Action' => '$Action' but have more specific path defined