Set the state of the job to 'finished'.
string $message: 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: Statically set to status.
\Drupal\tmgmt\JobInterface The job entity.
Overrides JobInterface::finished
public function finished($message = NULL, $variables = array(), $type = 'status') {
if (!isset($message)) {
$message = 'The translation job has been finished.';
}
return $this
->setState(static::STATE_FINISHED, $message, $variables, $type);
}