function LinkToForm() { $PresentationID = Session::get('UploadMedia.PresentationID'); $Presentation = VideoPresentation::get()->byID($PresentationID); $Form = new PresentationLinkToForm($this, 'LinkToForm'); if ($Presentation) { $Form->loadDataFrom($Presentation); } return $Form; }
/** * @return mixed */ public function LinkToForm() { $form = PresentationLinkToForm::create($this, 'LinkToForm', $this->presentation); return $form; }