protected function SubscriberForm::getSubmitMessage in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Form/SubscriberForm.php \Drupal\simplenews\Form\SubscriberForm::getSubmitMessage()
- 3.x src/Form/SubscriberForm.php \Drupal\simplenews\Form\SubscriberForm::getSubmitMessage()
Returns a message to display to the user upon successful form submission.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: Form state object.
string $op: A string equal to either ::SUBMIT_UPDATE, ::SUBMIT_SUBSCRIBE or ::SUBMIT_UNSUBSCRIBE.
bool $confirm: Whether a confirmation mail is sent or not.
Return value
string A HTML message.
Overrides SubscriptionsFormBase::getSubmitMessage
File
- src/
Form/ SubscriberForm.php, line 79
Class
- SubscriberForm
- Form controller for the subscriber edit forms.
Namespace
Drupal\simplenews\FormCode
protected function getSubmitMessage(FormStateInterface $form_state, $op, $confirm) {
return $this
->t('Subscriber %label has been updated.', array(
'%label' => $this->entity
->label(),
));
}