public function ExampleWebformHandler::preDelete in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php \Drupal\webform_example_handler\Plugin\WebformHandler\ExampleWebformHandler::preDelete()
Acts on a webform submission before they are deleted and before hooks are invoked.
Used before the entities are deleted and before invoking the delete hook.
Parameters
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Overrides WebformHandlerBase::preDelete
File
- modules/
webform_example_handler/ src/ Plugin/ WebformHandler/ ExampleWebformHandler.php, line 167
Class
- ExampleWebformHandler
- Webform example handler.
Namespace
Drupal\webform_example_handler\Plugin\WebformHandlerCode
public function preDelete(WebformSubmissionInterface $webform_submission) {
$this
->debug(__FUNCTION__);
}