You are here

public static function LocalTaskItem::getStatuses in Translation Management Tool 8

Retrieve a labeled list of all available statuses for task items.

Return value

array A list of all available statuses.

Overrides LocalTaskItemInterface::getStatuses

1 call to LocalTaskItem::getStatuses()
LocalTaskItemForm::form in translators/tmgmt_local/src/Form/LocalTaskItemForm.php
Gets the actual form array to be built.

File

translators/tmgmt_local/src/Entity/LocalTaskItem.php, line 366

Class

LocalTaskItem
Entity class for the local task item entity.

Namespace

Drupal\tmgmt_local\Entity

Code

public static function getStatuses() {
  return array(
    LocalTaskItemInterface::STATUS_PENDING => t('Untranslated'),
    LocalTaskItemInterface::STATUS_COMPLETED => t('Translated'),
    LocalTaskItemInterface::STATUS_REJECTED => t('Rejected'),
    LocalTaskItemInterface::STATUS_CLOSED => t('Completed'),
  );
}