if ($check_cache) { $cache_form_state =
$form_state->
getCacheableArray();
$cache_form_state['always_process'
] =
$form_state->
getAlwaysProcess();
$cache_form_state['temporary'
] =
$form_state->
getTemporary();
$form_state =
$form_state_before_retrieval;
$form_state->
setFormState($cache_form_state);
} } // If this form is an AJAX request, disable all form redirects.
if ($ajax_form_request =
$request->query->
has(static::AJAX_FORM_REQUEST
)) { $form_state->
disableRedirect();
} // Now that we have a constructed form, process it. This is where:
// - Element #process functions get called to further refine $form.
// - User input, if any, gets incorporated in the #value property of the
// corresponding elements and into $form_state->getValues().
// - Validation and submission handlers are called.
// - If this submission is part of a multistep workflow, the form is rebuilt
// to contain the information of the next step.
// - If necessary, the form and form state are cached or re-cached, so that
// appropriate information persists to the next page request.