src/Extensions/GridFieldBetterButtonsItemRequest.php
public function doSaveAndQuit($data, $form)
    {
        Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
        return $this->saveAndRedirect($data, $form, $this->getBackLink());
    }
public function doSaveAndQuit($data, $form)
    {
        Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
        return $this->saveAndRedirect($data, $form, $this->getBackLink());
    }
Saves the form and goes back to list view


@param array The form data
@param Form The form object