protected function EmailConfirmerResponseForm::confirmationError in Email confirmer 8
Common behaviour when there ware errors in confirmation.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
3 calls to EmailConfirmerResponseForm::confirmationError()
- EmailConfirmerResponseForm::confirmConfirmation in src/
Form/ EmailConfirmerResponseForm.php - Confirms the email confirmation.
- EmailConfirmerResponseForm::skipConfirmationForm in src/
Form/ EmailConfirmerResponseForm.php - Skip the response form and positively confirm the confirmation.
- EmailConfirmerResponseForm::submitForm in src/
Form/ EmailConfirmerResponseForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
File
- src/
Form/ EmailConfirmerResponseForm.php, line 193
Class
- EmailConfirmerResponseForm
- Email confirmation response form.
Namespace
Drupal\email_confirmer\FormCode
protected function confirmationError(FormStateInterface $form_state) {
$this
->messenger()
->addError($this
->t('There was an error processing your email confirmation.'), 'error');
$form_state
->setRedirectUrl($this
->getRedirectUrl('error'));
}