You are here

public function ExampleWebformHandler::preDelete in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 187

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

public function preDelete(WebformSubmissionInterface $webform_submission) {
  $this
    ->debug(__FUNCTION__);
}