You are here

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

Acts on a webform submission before the presave hook is invoked.

Parameters

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

Overrides WebformHandlerBase::preSave

File

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

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

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