public function doAddMockData($data, $form)
    {
        $this->owner->record->fill(array(
            'only_empty' => true,
            'include_relations' => false,
            'download_images' => false
        ));

        Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
        $link = Controller::join_links($this->owner->gridField->Link(), "item", $this->owner->record->ID);
        return Controller::curr()->redirect($link);
    }
public function doAddMockData($data, $form)
    {
        $this->owner->record->fill(array(
            'only_empty' => true,
            'include_relations' => false,
            'download_images' => false
        ));

        Controller::curr()->getResponse()->addHeader("X-Pjax", "Content");
        $link = Controller::join_links($this->owner->gridField->Link(), "item", $this->owner->record->ID);
        return Controller::curr()->redirect($link);
    }
public function doAddMockData ( $ data , $ form ) { $ this -> owner -> record -> fill ( array ( 'only_empty' => true , 'include_relations' => false , 'download_images' => false ) ) ; Controller :: curr ( ) -> getResponse ( ) -> addHeader ( "X-Pjax" , "Content" ) ; $ link = Controller :: join_links ( $ this -> owner -> gridField -> Link ( ) , "item" , $ this -> owner -> record -> ID ) ; return Controller :: curr ( ) -> redirect ( $ link ) ; }
A form action that handles populating the record with mock data

@param array $data The data that as passed in from the form
@param Form $form The Form object that was used
@return SSViewer
A form action that handles populating the record with mock data