public function Job::finished in Translation Management Tool 8
Set the state of the job to 'finished'.
Parameters
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.
Return value
\Drupal\tmgmt\JobInterface The job entity.
Overrides JobInterface::finished
See also
File
- src/
Entity/ Job.php, line 694
Class
- Job
- Entity class for the tmgmt_job entity.
Namespace
Drupal\tmgmt\EntityCode
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);
}