diff --git a/core/includes/form.inc b/core/includes/form.inc index 18d79e7b94bd30b76c9790ad376f523852a1dfa2..1b58d1202ce52988ab4ccf0600c48499f0364e47 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -263,18 +263,6 @@ function drupal_process_form($form_id, &$form, &$form_state) { \Drupal::formBuilder()->processForm($form_id, $form, $form_state); } -/** - * Validates user-submitted form data in the $form_state array. - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal::formBuilder()->validateForm(). - * - * @see \Drupal\Core\Form\FormValidatorInterface::validateForm(). - */ -function drupal_validate_form($form_id, &$form, &$form_state) { - \Drupal::formBuilder()->validateForm($form_id, $form, $form_state); -} - /** * Redirects the user to a URL after a form has been processed. * diff --git a/core/modules/system/tests/modules/form_test/form_test.module b/core/modules/system/tests/modules/form_test/form_test.module index 340c1f93035be553989e011381e7f24a50e15c69..34e624257862c0b587f9d80e14d514384c8ff681 100644 --- a/core/modules/system/tests/modules/form_test/form_test.module +++ b/core/modules/system/tests/modules/form_test/form_test.module @@ -81,7 +81,7 @@ function system_form_form_test_alter_form_alter(&$form, &$form_state) { } /** - * Form builder for testing drupal_validate_form(). + * Form builder for testing \Drupal\Core\Form\FormValidatorInterface::validateForm(). * * Serves for testing form processing and alterations by form validation * handlers, especially for the case of a validation error: