You are here

public function ApplyForRoleConfirmActionForm::getDescription in Apply for role 8

Creates the description for the cancelation form.

Overrides ConfirmFormBase::getDescription

File

src/Form/ApplyForRoleConfirmActionForm.php, line 70

Class

ApplyForRoleConfirmActionForm

Namespace

Drupal\apply_for_role\Form

Code

public function getDescription() {
  if ($this->form_action == 'approve') {
    return $this
      ->t('By approving this application, the user %username above will receive the role(s) %role.', array(
      '%role' => $this->roles,
      '%username' => $this->username,
    ));
  }
  else {
    return $this
      ->t('By denying this application, the user %username will NOT receive the role(s) %role and their application will be marked as denied.', array(
      '%role' => $this->roles,
      '%username' => $this->username,
    ));
  }
}