Description
Below provided files are included in this module.
Here StudentForm.php and AddressForm.php are for Private Tempstore sample implementation.
and StudentFormShared.php and AddressFormShared.php files are for Shared Tempstore implementation.
First access path /tempstorage/add-student and after submitting, form redirects to /tempstorage/add-address, here we are setting values using private tempstore and displays data after address form submitted.
First access path /tempstorage/add-student-shared and after submitting, form redirects to /tempstorage/add-address-shared, here we are setting values using private tempstore and displays data after address form submitted.
See this article for more about temporary storage.