public static function JobItem::getStates in Translation Management Tool 8
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()
- ConfigTranslateForm::buildForm in sources/
tmgmt_config/ src/ Form/ ConfigTranslateForm.php - Form constructor.
- ContentTmgmtEntitySourceListTest::testTranslationStatuses in sources/
content/ tests/ src/ Functional/ ContentTmgmtEntitySourceListTest.php - ContentTranslateForm::buildForm in sources/
content/ src/ Form/ ContentTranslateForm.php - Form constructor.
- ItemCount::buildOptionsForm in translators/
tmgmt_local/ src/ Plugin/ views/ field/ ItemCount.php - Default options form that provides the label widget that all fields should have.
- JobItem::baseFieldDefinitions in src/
Entity/ JobItem.php - Provides base field definitions for an entity type.
File
- src/
Entity/ JobItem.php, line 1131
Class
- JobItem
- Entity class for the tmgmt_job_item entity.
Namespace
Drupal\tmgmt\EntityCode
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'),
);
}