public function ScheduleEmailWebformHandler::postDelete in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_scheduled_email/src/Plugin/WebformHandler/ScheduleEmailWebformHandler.php \Drupal\webform_scheduled_email\Plugin\WebformHandler\ScheduleEmailWebformHandler::postDelete()
Acts on deleted a webform submission before the delete hook is invoked.
Used after the entities are deleted but before invoking the delete hook.
Parameters
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Overrides EmailWebformHandler::postDelete
File
- modules/
webform_scheduled_email/ src/ Plugin/ WebformHandler/ ScheduleEmailWebformHandler.php, line 373
Class
- ScheduleEmailWebformHandler
- Schedules a webform submission's email.
Namespace
Drupal\webform_scheduled_email\Plugin\WebformHandlerCode
public function postDelete(WebformSubmissionInterface $webform_submission) {
$this
->unscheduleMessage($webform_submission);
}