diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestProgrammaticForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestProgrammaticForm.php index 367358f..a44b8c4 100644 --- a/core/modules/system/tests/modules/form_test/src/Form/FormTestProgrammaticForm.php +++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestProgrammaticForm.php @@ -73,7 +73,7 @@ public function buildForm(array $form, array &$form_state) { // Use the same submit handler for this button as for the form itself. // (This must be set explicitly or otherwise the form API will ignore the // #limit_validation_errors property.) - '#submit' => array('form_test_programmatic_form_submit'), + '#submit' => array(array($this, 'submitForm')), ); if (!empty($form_state['input']['field_to_validate']) && $form_state['input']['field_to_validate'] != 'all') { $form['submit_limit_validation']['#limit_validation_errors'] = array(