You are here

public function ExampleWebformHandler::postSave in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php \Drupal\webform_example_handler\Plugin\WebformHandler\ExampleWebformHandler::postSave()

Acts on a saved webform submission before the insert or update hook is invoked.

Parameters

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

bool $update: TRUE if the entity has been updated, or FALSE if it has been inserted.

Overrides WebformHandlerBase::postSave

File

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

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE) {
  $this
    ->debug(__FUNCTION__, $update ? 'update' : 'insert');
}