You are here

protected function apply_for_role_application_admin_page::display_status in Apply for role 8

Helper function to display a clean text representation of a status.

1 call to apply_for_role_application_admin_page::display_status()
apply_for_role_application_admin_page::content in src/Controller/apply_for_role_application_admin_page.php
Content, renders table of applications, paged.

File

src/Controller/apply_for_role_application_admin_page.php, line 95

Class

apply_for_role_application_admin_page

Namespace

Drupal\apply_for_role\Controller

Code

protected function display_status($status) {
  switch ($status) {
    case 0:
      return 'Needs Review';
      break;
    case 1:
      return 'Accepted';
      break;
    case 2:
      return 'Denied';
      break;
    default:

      // @TODO: Add error handling here if desired.
      return FALSE;
  }
}