Skip to content
Snippets Groups Projects
Commit ec9e2b5f authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 16102e80
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -263,18 +263,6 @@ function drupal_process_form($form_id, &$form, &$form_state) { ...@@ -263,18 +263,6 @@ function drupal_process_form($form_id, &$form, &$form_state) {
\Drupal::formBuilder()->processForm($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. * 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) { ...@@ -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 * Serves for testing form processing and alterations by form validation
* handlers, especially for the case of a validation error: * handlers, especially for the case of a validation error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment