How can I retrieve the currently submitted and validated form state?
Please assume the following scenario.
A page has a form on it created using the form API. The data in the submitted form is transient. In other words it is not saved or stored in any way.
The form is created by a module I do not control and therefore I should not alter the codebase.
On the same page as the form is a block (mine) which displays data based on the form submission.
I want to get access to the validated data from the anonymous user submitted form from within the block plugin code.
The form does all the necessary validation of the user submitted data. I do not want to replicate this validation so I need to get access to the validated form_state so I can extracted the submitted values.
I cannot see a way to retrieve the form_state object from the current request.
How can this be done?