/**
* Based on input, create participant row for transferee and send email
*
- * @param $participant
+ * @param CRM_Event_BAO_Participant $participant
*
* @throws \API_Exception
* @throws \CRM_Core_Exception
$eventDetails = [];
$eventParams = ['id' => $participant->event_id];
CRM_Event_BAO_Event::retrieve($eventParams, $eventDetails);
+
//get default participant role.
$eventDetails['participant_role'] = $participantRoles[$eventDetails['default_role_id']] ?? NULL;
//get the location info