Commit b6e26521 authored by alexpott's avatar alexpott
Browse files

Issue #2299499 by joshi.rohit100: Remove form_clear_error() as it is deprecated.

parent 57cf7f08
......@@ -354,18 +354,6 @@ function form_set_error($name, array &$form_state, $message = '') {
\Drupal::formBuilder()->setErrorByName($name, $form_state, $message);
}
/**
* Clears all errors against all form elements made by form_set_error().
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::formBuilder()->clearErrors().
*
* @see \Drupal\Core\Form\FormBuilderInterface::clearErrors().
*/
function form_clear_error(array &$form_state) {
\Drupal::formBuilder()->clearErrors($form_state);
}
/**
* Returns an associative array of all errors.
*
......
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