You are here

abstract protected function SubscriptionsFormBase::getSubmitMessage in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getSubmitMessage()
  2. 8 src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getSubmitMessage()

Returns a message to display to the user upon successful form submission.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: Form state object.

bool $confirm: Whether a confirmation mail is sent or not.

Return value

string A HTML message.

1 call to SubscriptionsFormBase::getSubmitMessage()
SubscriptionsFormBase::submitExtra in src/Form/SubscriptionsFormBase.php
Submit callback that (un)subscribes to newsletters based on selection.
4 methods override SubscriptionsFormBase::getSubmitMessage()
SubscriberForm::getSubmitMessage in src/Form/SubscriberForm.php
Returns a message to display to the user upon successful form submission.
SubscriptionsAccountForm::getSubmitMessage in src/Form/SubscriptionsAccountForm.php
Returns a message to display to the user upon successful form submission.
SubscriptionsBlockForm::getSubmitMessage in src/Form/SubscriptionsBlockForm.php
Returns a message to display to the user upon successful form submission.
SubscriptionsPageForm::getSubmitMessage in src/Form/SubscriptionsPageForm.php
Returns a message to display to the user upon successful form submission.

File

src/Form/SubscriptionsFormBase.php, line 92

Class

SubscriptionsFormBase
Entity form for Subscriber with common routines.

Namespace

Drupal\simplenews\Form

Code

protected abstract function getSubmitMessage(FormStateInterface $form_state, $confirm);