public static function LocalTask::getStatuses

Returns a labeled list of all available statuses.

Return value

array A list of all available statuses.

Overrides LocalTaskInterface::getStatuses

2 calls to LocalTask::getStatuses()
LocalTask::setStatus in translators/tmgmt_local/src/Entity/LocalTask.php
Updates the status of the task.
LocalTaskForm::form in translators/tmgmt_local/src/Form/LocalTaskForm.php

File

translators/tmgmt_local/src/Entity/LocalTask.php, line 408

Class

LocalTask
Entity class for the local task entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public static function getStatuses() {
  return array(
    static::STATUS_UNASSIGNED => t('Unassigned'),
    static::STATUS_PENDING => t('Pending'),
    static::STATUS_COMPLETED => t('Completed'),
    static::STATUS_REJECTED => t('Rejected'),
    static::STATUS_CLOSED => t('Closed'),
  );
}