You are here

public function JobItem::getTranslatorState in Translation Management Tool 8

Returns the current translator state.

Translator states are expected to be exposed through hook_tmgmt_job_item_state_definitions_alter().

Return value

string|null The translator state or NULL if none is set.

Overrides JobItemInterface::getTranslatorState

1 call to JobItem::getTranslatorState()
JobItem::getStateIcon in src/Entity/JobItem.php
Returns a render array to display a job item state icon.

File

src/Entity/JobItem.php, line 631

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getTranslatorState() {
  return $this
    ->get('translator_state')->value;
}