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