Set the state of the job to 'submitted'.
string $message: (optional) The log message to be saved along with the state change.
array $variables: (optional) An array of variables to replace in the message on display.
string $type: (optional) The message type.
\Drupal\tmgmt\JobInterface The job entity.
Overrides JobInterface::submitted
public function submitted($message = NULL, $variables = array(), $type = 'status') {
if (!isset($message)) {
$message = 'The translation job has been submitted.';
}
$this
->setState(static::STATE_ACTIVE, $message, $variables, $type);
}