protected function SubscriptionsPageForm::getSubmitMessage in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Form/SubscriptionsPageForm.php \Drupal\simplenews\Form\SubscriptionsPageForm::getSubmitMessage()
- 8 src/Form/SubscriptionsPageForm.php \Drupal\simplenews\Form\SubscriptionsPageForm::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.
Overrides SubscriptionsFormBase::getSubmitMessage
File
- src/
Form/ SubscriptionsPageForm.php, line 51
Class
- SubscriptionsPageForm
- Configure subscriptions of the currently authenticated subscriber.
Namespace
Drupal\simplenews\FormCode
protected function getSubmitMessage(FormStateInterface $form_state, $confirm) {
return $this
->t('Your newsletter subscriptions have been updated.');
}