You are here

public function WebformHandlerBase::preDelete in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::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 WebformHandlerInterface::preDelete

2 methods override WebformHandlerBase::preDelete()
ExampleWebformHandler::preDelete in modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php
Acts on a webform submission before they are deleted and before hooks are invoked.
TestWebformHandler::preDelete in tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php
Acts on a webform submission before they are deleted and before hooks are invoked.

File

src/Plugin/WebformHandlerBase.php, line 638

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

public function preDelete(WebformSubmissionInterface $webform_submission) {
}