You are here

public function TestWebformHandler::preDelete in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestWebformHandler::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

tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php, line 136

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

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