Commit ec9e2b5f authored by alexpott's avatar alexpott

Issue #2301601 by joshi.rohit100: Remove drupal_validate_form() as it is deprecated.

parent 16102e80
......@@ -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.
*
......
......@@ -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:
......
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