Issue #3219541 by tunic, longwave: Remove redundant call $this->requestStack->getCurrentRequest() in FormBuilder::buildForm

merge-requests/822/head
catch 2021-06-21 11:56:25 +01:00
parent ba1ff55e88
commit 8cc548c09e
1 changed files with 0 additions and 1 deletions

View File

@ -302,7 +302,6 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
}
// If this form is an AJAX request, disable all form redirects.
$request = $this->requestStack->getCurrentRequest();
if ($ajax_form_request = $request->query->has(static::AJAX_FORM_REQUEST)) {
$form_state->disableRedirect();
}