// Execution continues only for programmatic forms.
// For 'regular' forms, we get redirected to the batch processing
// page. Form redirection will be handled in _batch_finished(),
// after the batch is processed.
} // Set a flag to indicate the form has been processed and executed.
$form_state->
setExecuted();
// If no response has been set, process the form redirect.
if (!
$form_state->
getResponse() &&
$redirect =
$this->
redirectForm($form_state)) { $form_state->
setResponse($redirect);
} // If there is a response was set, return it instead of continuing.
if (($response =
$form_state->
getResponse()) &&
$response instanceof Response
) { return $response;
} } /**
* {@inheritdoc}
*/