code: public function doSaveAndQuit($data, $form)
      {
          Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
          return $this->saveAndRedirect($data, $form, $this->getBackLink());
      }
docs: Saves the form and goes back to list view
  
  
  @param array The form data
  @param Form The form object