Skip to content

Commit

Permalink
1062: Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuaitk committed Jun 25, 2024
1 parent 717899b commit a6613f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion modules/os2forms_encrypt/src/Helper/Os2FormsEncryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function encryptValue(string $value, string $element, string $webformId):
];

return serialize($encrypted_data);

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@
use Drupal\webform_revisions\Controller\WebformRevisionsController;

/**
* This class extension WebformEncryptSubmissionStorage.
* This class extends WebformEncryptSubmissionStorage.
*
* This is to encrypt just the data sent to database and check if webform
* revisions are enabled.
*
* The reason we need to tweak the encryption made by
* WebformEncryptSubmissionStorage is that the value of computed elements,
* e.g. Computed Twig, will be attempted computed AFTER encryptio. This can
* cause all sorts of exceptions and type errors on runtime.
*
* This mostly runs the same code (copied here as multiple
* inherits is not a thing in PHP), with minor tweaks.
*/
Expand Down

0 comments on commit a6613f0

Please sign in to comment.