Exemple #1
0
 /**
  * @param CampaignForm $form
  *
  * @return array
  */
 private function getMessageData(CampaignForm $form)
 {
     $formData = $form->getData();
     $messageData = [];
     $messageData[MessageEntity::BODY] = $formData[CampaignForm::WELCOME_MESSAGE];
     $messageData[MessageEntity::SUBJECT] = $formData[CampaignForm::WELCOME_SUBJECT];
     return $messageData;
 }