You are here

public function AutosaveFormErrorHandler::__construct in Autosave Form 8

Constructs a AutosaveFormErrorHandler object.

Parameters

\Drupal\Core\Form\FormErrorHandlerInterface $form_error_handler: The form error handler service.

File

src/Form/AutosaveFormErrorHandler.php, line 29

Class

AutosaveFormErrorHandler
Handles form errors.

Namespace

Drupal\autosave_form\Form

Code

public function __construct(FormErrorHandlerInterface $form_error_handler) {
  $this->formErrorHandler = $form_error_handler;
}