You are here

public static function Task::getStatuses in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::getStatuses()
  2. 3.0.x modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::getStatuses()

Gets the allowed values for the 'billing_countries' base field.

Return value

array The allowed values.

1 call to Task::getStatuses()
Task::getStatusLabel in modules/gdpr_tasks/src/Entity/Task.php
Gets the current human readable status of the task.

File

modules/gdpr_tasks/src/Entity/Task.php, line 291

Class

Task
Defines the Task entity.

Namespace

Drupal\gdpr_tasks\Entity

Code

public static function getStatuses() {
  return [
    'requested' => t('Requested'),
    'building' => t('Building data'),
    'reviewing' => t('Needs review'),
    'processed' => t('Processed'),
    'closed' => t('Closed'),
  ];
}