src/Extensions/GridFieldBetterButtonsItemRequest.php
public function doPublishAndAdd($data, $form)
    {
        return $this->publish($data, $form, $this->owner, $this->owner->Link('addnew'));
    }
public function doPublishAndAdd($data, $form)
    {
        return $this->publish($data, $form, $this->owner, $this->owner->Link('addnew'));
    }
public function doPublishAndAdd ( $ data , $ form ) { return $ this -> publish ( $ data , $ form , $ this -> owner , $ this -> owner -> Link ( 'addnew' ) ) ; }
Publishes the record and goes to make a new record
@param  array $data The form data
@param  Form $form The Form object
@return HTTPResponse
Publishes the record and goes to make a new record