You are here

public function ApplyForRoleConfirmActionForm::getConfirmText in Apply for role 8

Returns what the confirmation button will say.

Overrides ConfirmFormBase::getConfirmText

File

src/Form/ApplyForRoleConfirmActionForm.php, line 46

Class

ApplyForRoleConfirmActionForm

Namespace

Drupal\apply_for_role\Form

Code

public function getConfirmText() {
  if ($this->form_action == 'approve') {
    return $this
      ->t('Approve Application');
  }
  else {
    return $this
      ->t('Deny Application');
  }
}