From 480ca7ad41cad294dbdb546feff392ec286b7b56 Mon Sep 17 00:00:00 2001 From: Joshua Brauer Date: Sat, 12 Jan 2019 14:01:35 -0700 Subject: [PATCH 1/2] Fix minor typo. Also issue 3014111 on d.o --- src/Form/GroupSubscribeForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/GroupSubscribeForm.php b/src/Form/GroupSubscribeForm.php index 0ce927acc..0afbabcfb 100644 --- a/src/Form/GroupSubscribeForm.php +++ b/src/Form/GroupSubscribeForm.php @@ -234,7 +234,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { /** @var EntityInterface $group */ $group = $membership->getGroup(); - $message = $membership->isActive() ? $this->t('Your are now subscribed to the group.') : $this->t('Your subscription request was sent.'); + $message = $membership->isActive() ? $this->t('You are now subscribed to the group.') : $this->t('Your subscription request was sent.'); $this->messenger()->addMessage($message); // User doesn't have access to the group entity, so redirect to front page, From a244dc58d8932de7113cef36dfd64be06e3e6e3e Mon Sep 17 00:00:00 2001 From: Maarten Segers Date: Sat, 12 Jan 2019 19:22:23 -0700 Subject: [PATCH 2/2] Update src/Form/GroupSubscribeForm.php Yes! Co-Authored-By: jbrauer --- src/Form/GroupSubscribeForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/GroupSubscribeForm.php b/src/Form/GroupSubscribeForm.php index 0afbabcfb..822ee96cc 100644 --- a/src/Form/GroupSubscribeForm.php +++ b/src/Form/GroupSubscribeForm.php @@ -234,7 +234,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { /** @var EntityInterface $group */ $group = $membership->getGroup(); - $message = $membership->isActive() ? $this->t('You are now subscribed to the group.') : $this->t('Your subscription request was sent.'); + $message = $membership->isActive() ? $this->t('You are now subscribed to the group.') : $this->t('Your subscription request has been sent.'); $this->messenger()->addMessage($message); // User doesn't have access to the group entity, so redirect to front page,