I have a need to know if a multipage webform submission has been edited, and when, by the current user. If I load the webform submission I can see when it was completed, updated or started, but I don't see how to know if there is an edit in process. This might happen when a person edits a page or 2 and leaves without getting all the way to the end and submitting the submission again.
$completed = $submission->isCompleted(); $changed_time = $submission->getChangedTime(); $completed_time = $submission->getCompletedTime(); $updated_time = $submission->getData()['timestamp'];
$completed shows if form was ever submitted.
$changed_time shows the last time the form action buttons were used, but after the first submit it only updates if the form is submitted again.
$completed_time shows the first time the form was submitted.
$updated_time shows the value in a field I added where I save the timestamp on the validation of any action button, but this is only available in the submission entity after a submit.
How can I get a real last edit time? Thanks.