You are here

public function ApplyForRoleConfirmActionForm::getQuestion in Apply for role 8

Creates the question for the form. Essentially page title.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/ApplyForRoleConfirmActionForm.php, line 58

Class

ApplyForRoleConfirmActionForm

Namespace

Drupal\apply_for_role\Form

Code

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