protected function WebformEncryptSubmissionStorage::loadData in Webform Encrypt 8
Save webform submission data from the 'webform_submission_data' table.
Parameters
array $webform_submissions: An array of webform submissions.
Overrides WebformSubmissionStorage::loadData
File
- src/
WebformEncryptSubmissionStorage.php, line 273
Class
- WebformEncryptSubmissionStorage
- Alter webform submission storage definitions.
Namespace
Drupal\webform_encryptCode
protected function loadData(array &$webform_submissions) {
parent::loadData($webform_submissions);
foreach ($webform_submissions as &$webform_submission) {
$data = $this
->decryptElements($webform_submission);
$webform_submission
->setData($data);
$webform_submission
->setOriginalData($data);
}
}