public function AutosaveFormErrorHandler::handleFormErrors in Autosave Form 8
Handles form errors after form validation.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
$this
Overrides FormErrorHandler::handleFormErrors
File
- src/
Form/ AutosaveFormErrorHandler.php, line 36
Class
- AutosaveFormErrorHandler
- Handles form errors.
Namespace
Drupal\autosave_form\FormCode
public function handleFormErrors(array &$form, FormStateInterface $form_state) {
if ($this
->isAutosaveTriggered($form_state)) {
return $this;
}
return $this->formErrorHandler
->handleFormErrors($form, $form_state);
}