public function ExampleWebformHandler::postSave in Webform 6.x
Same name and namespace in other branches
- 8.5 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 188
Class
- ExampleWebformHandler
- Webform example handler.
Namespace
Drupal\webform_example_handler\Plugin\WebformHandlerCode
public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE) {
$this
->debug(__FUNCTION__, $update ? 'update' : 'insert');
}