Commit 402e4685 authored by webchick's avatar webchick
Browse files

Issue #2120863 by tim.plunkett, Gaelan: Add docs to core/lib/Drupal/Core/Form/FormBuilder.php.

parent ebe7d618
......@@ -443,9 +443,9 @@ protected function getUncacheableKeys() {
public function submitForm($form_arg, &$form_state) {
if (!isset($form_state['build_info']['args'])) {
$args = func_get_args();
array_shift($args);
array_shift($args);
$form_state['build_info']['args'] = $args;
// Remove $form and $form_state from the arguments.
unset($args[0], $args[1]);
$form_state['build_info']['args'] = array_values($args);
}
// Merge in default values.
$form_state += $this->getFormStateDefaults();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment