You are here

public function TMGMTJob::finished in Translation Management Tool 7

Set the state of the job to 'finished'.

Parameters

$message: The log message to be saved along with the state change.

$variables: (Optional) An array of variables to replace in the message on display.

Return value

TMGMTJob The job entity.

See also

TMGMTJob::addMessage()

File

entity/tmgmt.entity.job.inc, line 571

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function finished($message = NULL, $variables = array(), $type = 'status') {
  if (!isset($message)) {
    $message = 'The translation job has been finished.';
  }
  return $this
    ->setState(TMGMT_JOB_STATE_FINISHED, $message, $variables, $type);
}