/** * Returns the unregistration notice for the notification mails. * * @param tx_seminars_seminar $event the event to get the unregistration deadline from * * @return string the unregistration notice with the event's unregistration deadline, will not be empty */ protected function getUnregistrationNotice(tx_seminars_seminar $event) { $unregistrationDeadline = $event->getUnregistrationDeadlineFromModelAndConfiguration(); return sprintf($this->translate('email_unregistrationNotice'), strftime($this->getConfValueString('dateFormatYMD'), $unregistrationDeadline)); }