UncleCheese\BetterButtons\Actions\BetterButtonCustomAction

Defines an arbitrary action that can be taken from a grid field detail form

Synopsis

class BetterButtonCustomAction extends BetterButtonAction {
  • // constants
  • const GOBACK = 1;
  • const REFRESH = 2;
}

Hierarchy

Constants

Name Value
GOBACK 1
A symbol representing the "go back" behaviour
REFRESH 2
A symbol representing the "refresh" behaviour

Members

protected

  • $actionName — string
    The name of the action (e.g. a method) to take on the model
  • $buttonName — string
    The name of the button, used just for uniqueness
  • $buttonText — string
    The text to appear on the button
  • $formSilverStripe\Forms\Form
    The form that this action is associated with
  • $gridFieldRequestSilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest
    The request that is associated with the gridfield
  • $redirectType — int
    The type of redirect, see GOBACK and REFRESH constants
  • $redirectURL — string
    The redirect URL. Overrides $redirectType

Methods

public

Inherited from UncleCheese\BetterButtons\Actions\BetterButtonAction

public