You are here

public function GroupSubscribeForm::getConfirmText in Organic groups 8

Get confirmation text, according to the membership state.

Return value

string The text.

1 call to GroupSubscribeForm::getConfirmText()
GroupSubscribeForm::actions in src/Form/GroupSubscribeForm.php

File

src/Form/GroupSubscribeForm.php, line 106

Class

GroupSubscribeForm
Provides a form for subscribing to a group.

Namespace

Drupal\og\Form

Code

public function getConfirmText() {
  return $this
    ->isStateActive() ? $this
    ->t('Join') : $this
    ->t('Request membership');
}