public function EmailWebformHandler::postDelete in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformHandler/EmailWebformHandler.php \Drupal\webform\Plugin\WebformHandler\EmailWebformHandler::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 WebformHandlerBase::postDelete
1 method overrides EmailWebformHandler::postDelete()
- ScheduleEmailWebformHandler::postDelete in modules/
webform_scheduled_email/ src/ Plugin/ WebformHandler/ ScheduleEmailWebformHandler.php - Acts on deleted a webform submission before the delete hook is invoked.
File
- src/
Plugin/ WebformHandler/ EmailWebformHandler.php, line 907
Class
- EmailWebformHandler
- Emails a webform submission.
Namespace
Drupal\webform\Plugin\WebformHandlerCode
public function postDelete(WebformSubmissionInterface $webform_submission) {
if (in_array(WebformSubmissionInterface::STATE_DELETED, $this->configuration['states'])) {
$message = $this
->getMessage($webform_submission);
$this
->sendMessage($webform_submission, $message);
}
}