You are here

public function ExampleWebformHandler::preSave in Webform 6.x

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

modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php, line 181

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

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