public function DispatchService::sendRegistration in RNG - Events and Registrations 3.x
File
- rng_easy_email/
src/ DispatchService.php, line 41
Class
- DispatchService
- Class DispatchService.
Namespace
Drupal\rng_easy_emailCode
public function sendRegistration($template, RegistrationInterface $registration) {
// Don't send for events in the past, to allow import of old registrants.
$event = $registration
->getEventMeta();
if ($event
->isPastEvent()) {
return;
}
foreach ($registration
->getRegistrants() as $registrant) {
$this
->send($template, $registrant);
}
}