function webform_submission_log_webform_delete in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_submission_log/webform_submission_log.module \webform_submission_log_webform_delete()
Implements hook_webform_delete().
File
- modules/
webform_submission_log/ webform_submission_log.module, line 74 - Dedicated logging for webform submissions.
Code
function webform_submission_log_webform_delete(WebformInterface $webform) {
\Drupal::database()
->delete('webform_submission_log')
->condition('webform_id', $webform
->id())
->execute();
}