You are here

public static function Job::getStates in Translation Management Tool 8

Returns a labeled list of all available states.

Return value

array A list of all available states.

Overrides JobInterface::getStates

2 calls to Job::getStates()
Job::setState in src/Entity/Job.php
Updates the state of the job.
JobForm::form in src/Form/JobForm.php
Gets the actual form array to be built.

File

src/Entity/Job.php, line 1015

Class

Job
Entity class for the tmgmt_job entity.

Namespace

Drupal\tmgmt\Entity

Code

public static function getStates() {
  return array(
    static::STATE_UNPROCESSED => t('Unprocessed'),
    static::STATE_ACTIVE => t('Active'),
    static::STATE_REJECTED => t('Rejected'),
    static::STATE_ABORTED => t('Aborted'),
    static::STATE_FINISHED => t('Finished'),
    static::STATE_CONTINUOUS => t('Continuous'),
    static::STATE_CONTINUOUS_INACTIVE => t('Continuous Inactive'),
  );
}