Commit 26564b50 authored by webchick's avatar webchick

Issue #2330423 by ashutoshsngh: Remove form.inc form_get_error().

parent 7a9f3fbf
......@@ -96,18 +96,6 @@ function form_get_errors(FormStateInterface $form_state) {
return $form_state->getErrors();
}
/**
* Returns the error message filed against the given form element.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use $form_state->getError().
*
* @see \Drupal\Core\Form\FormStateInterface::getError().
*/
function form_get_error($element, FormStateInterface $form_state) {
return $form_state->getError($element);
}
/**
* Flags an element as having an 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