Example #1
0
 /**
  * @param FormEntity $form
  *
  * @return string
  */
 public function getHiddenTags($form)
 {
     $tags = "\r\n            <input type='hidden' name=\"lffield[utmcampaign]\" id=\"lffield[utmcampaign]\" value='" . $form->getUtmcampaign() . "'/>\r\n            <input type='hidden' name='lfFormId' id='lfFormId' value='" . $form->getId() . "'/>\r\n            <input type='hidden' name='lfFormKey' id='lfFormKey' value='" . $this->getFormKey($form->getId()) . "'/>\r\n        ";
     if (!is_null($form->getFormType())) {
         $tags .= "<input type='hidden' name='lfFormType' id='lfFormType' value='" . $form->getFormType()->getId() . "'/>";
     }
     return $tags;
 }