You are here

public function WebformSubmissionStorageInterface::saveData in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionStorageInterface.php \Drupal\webform\WebformSubmissionStorageInterface::saveData()

Save webform submission data to the 'webform_submission_data' table.

This method is public the allow webform handler (i.e. remote posts) to update [webform:handler] tokens stored in the submission data.

Parameters

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

bool $delete_first: TRUE to delete any data first. For new submissions this is not needed.

See also

\Drupal\webform\Plugin\WebformHandler\RemotePostWebformHandler::remotePost

1 method overrides WebformSubmissionStorageInterface::saveData()
WebformSubmissionStorage::saveData in src/WebformSubmissionStorage.php
Save webform submission data to the 'webform_submission_data' table.

File

src/WebformSubmissionStorageInterface.php, line 564

Class

WebformSubmissionStorageInterface
Defines an interface for webform submission classes.

Namespace

Drupal\webform

Code

public function saveData(WebformSubmissionInterface $webform_submission, $delete_first = TRUE);