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
Namespace
Drupal\apply_for_role\FormCode
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,
));
}
}