UncleCheese\BetterButtons\Controllers\BetterButtonsNestedFormRequest

Request handler that deals with nested forms

Synopsis

class BetterButtonsNestedFormRequest extends BetterButtonsCustomActionRequest {
  • // Inherited members from BetterButtonsCustomActionRequest
  • protected GridFieldBetterButtonsItemRequest $parent;
  • protected GridFieldDetailForm_ItemRequest $controller;
  • protected DataObject $record;
  • protected Form $form;
}

Hierarchy

Members

private

  • $allowed_actions — array
    Define the allowed controller actions
  • $url_handlers — array
    Define URL routes

protected

Methods

protected

public

  • Form() — Create the nested form
  • index() — Render the form to the template
  • nestedFormSave() — Handles the saving of the nested form. This is essentially a proxy method for the method that the BetterButtonNestedForm button has been configured to use

Inherited from UncleCheese\BetterButtons\Controllers\BetterButtonsCustomActionRequest

public

  • handleCustomAction() — Takes the action at /customaction/my-action-name and feeds it to the DataObject.