public static function JobItem::getStates

Returns a labeled list of all available states.

Return value

array A list of all available states.

Overrides JobItemInterface::getStates

7 calls to JobItem::getStates()

File

src/Entity/JobItem.php, line 1157

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public static function getStates() {
  return array(
    static::STATE_ACTIVE => t('In progress'),
    static::STATE_REVIEW => t('Needs review'),
    static::STATE_ACCEPTED => t('Accepted'),
    static::STATE_ABORTED => t('Aborted'),
    static::STATE_INACTIVE => t('Inactive'),
  );
}