UncleCheese\BetterButtons\Extensions\GridFieldBetterButtonsItemRequest::saveAndRedirect
Oh, the horror! DRY police be advised. This function is a serious offender.
Saves the form data and redirects to a given link
Signature
protected function saveAndRedirect(array
$data,
Form
$form,
string
$redirectLink )
Parameters
$data
— array- The form data
$form
— object- The form object
$redirectLink
— string- The redirect link
Line | Task |
---|---|
477+ | GridFieldDetailForm_ItemRequest::doSave is too monolithic, making overloading impossible. Most of this code is a direct copy. |