// This value is checked in self::handleInputElement().
$form_state->
setInvalidToken(TRUE
);
// Ignore all submitted values.
$form_state->
setUserInput([]);
$request =
$this->requestStack->
getCurrentRequest();
// Do not trust any POST data.
$request->request =
new ParameterBag();
// Make sure file uploads do not get processed.
$request->files =
new FileBag();
// Ensure PHP globals reflect these changes.
$request->
overrideGlobals();
} } } else { $form_state->
setProcessInput(FALSE
);
} // All form elements should have an #array_parents property.
$element['#array_parents'
] =
[];
}