public static function LocalTask::getStatuses in Translation Management Tool 8
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 - Gets the actual form array to be built.
File
- translators/
tmgmt_local/ src/ Entity/ LocalTask.php, line 406
Class
- LocalTask
- Entity class for the local task entity.
Namespace
Drupal\tmgmt_local\EntityCode
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'),
);
}