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

6 calls to JobItem::getStates()
ConfigTranslateForm::buildForm in sources/tmgmt_config/src/Form/ConfigTranslateForm.php
ContentTmgmtEntitySourceListTest::testTranslationStatuses in sources/content/tests/src/Functional/ContentTmgmtEntitySourceListTest.php
ItemCount::buildOptionsForm in translators/tmgmt_local/src/Plugin/views/field/ItemCount.php
JobItem::baseFieldDefinitions in src/Entity/JobItem.php
JobItem::setState in src/Entity/JobItem.php
Updates the state of the job item.

... See full list

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'),
  );
}