Skip to content
Snippets Groups Projects
Commit ca896010 authored by Kyle Huynh's avatar Kyle Huynh
Browse files

added programatically sending email in drupal Libcal

parent bc14a614
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,16 @@ class EventDownloadService implements EventDownloadServiceInterface
];
$node = Node::create($params);
$node->save();
// trigger email sending action.
$action = \Drupal::entityTypeManager()
->getStorage('action')
->load('send_mail');
if ($action) {
$action->execute($entity);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment