public function JobItem::setTranslatorState

Sets the translator state.

A translator state is only kept for a given job item state, if that changes then the translator state is reset.

Parameters

string|null $translator_state: Set the translator set, use NULL to reset.

Return value

mixed

Overrides JobItemInterface::setTranslatorState

1 call to JobItem::setTranslatorState()
JobItem::setState in src/Entity/JobItem.php
Updates the state of the job item.

File

src/Entity/JobItem.php, line 653

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

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