SilverCommerce\ContactAdmin\BulkActions\AddToListHandler
Bulk action handler that adds selected records to a list
- Author: ilateral
Synopsis
class AddToListHandler
extends AddRelatedHandler
{
- // members
- private static string $url_segment = 'addtolist';
- protected string $label = 'Add to List';
- private static array $allowed_actions = ;
- // Inherited members from AddRelatedHandler
- protected boolean $xhr;
- protected boolean $destructive;
- // methods
- public array getI18nLabel()
- public string index()
- public Form Form()
- public HTTPResponse doAddToList()
- // Inherited methods from AddRelatedHandler
- public string Link()
- protected Controller getToplevelController()
- public ArrayData Breadcrumbs()
Hierarchy
Members
private
- $allowed_actions
—
array
RequestHandler allowed actions - $url_segment
protected
- $destructive
—
boolean
Set to true is this handler will destroy any data. - $label
—
string
Front-end label for this handler's action - $xhr
—
boolean
Whether this handler should be called via an XHR from the front-end
Methods
public
- Form() — Return a form with a dropdown to select the list you want to use
- doAddToList() — Saves the changes made in the bulk edit into the dataObject
- getI18nLabel() — Return i18n localized front-end label
- index() — Creates and return the editing interface
Inherited from SilverCommerce\ContactAdmin\BulkActions\AddRelatedHandler
protected
- getToplevelController() — Traverse up nested requests until we reach the first that's not a GridFieldDetailForm or GridFieldDetailForm_ItemRequest.
public
- Breadcrumbs() — Edited version of the GridFieldEditForm function adds the 'Bulk Upload' at the end of the crums.
- Link() — Return URL to this RequestHandler