abstract protected function SubscriptionsFormBase::getSubmitMessage in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getSubmitMessage()
- 3.x 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.
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.
3 calls to SubscriptionsFormBase::getSubmitMessage()
- SubscriptionsFormBase::submitSubscribe in src/
Form/ SubscriptionsFormBase.php - Submit callback that subscribes to selected newsletters.
- SubscriptionsFormBase::submitUnsubscribe in src/
Form/ SubscriptionsFormBase.php - Submit callback that unsubscribes from selected newsletters.
- SubscriptionsFormBase::submitUpdate 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 117
Class
- SubscriptionsFormBase
- Entity form for Subscriber with common routines.
Namespace
Drupal\simplenews\FormCode
protected abstract function getSubmitMessage(FormStateInterface $form_state, $op, $confirm);