You are here

public function TestWebformHandler::postDelete 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::postDelete()

Acts on deleted a webform submission before the delete hook is invoked.

Used after the entities are deleted but before invoking the delete hook.

Parameters

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

Overrides WebformHandlerBase::postDelete

File

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

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

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