public function Job::getMessagesSince in Translation Management Tool 8
Returns all job messages attached to this job.
It returns them with timestamp newer than $time.
Parameters
int $time: (Optional) Messages need to have a newer timestamp than $time. Defaults to REQUEST_TIME.
Return value
\Drupal\tmgmt\MessageInterface[] An array of translation job messages.
Overrides JobInterface::getMessagesSince
File
- src/
Entity/ Job.php, line 458
Class
- Job
- Entity class for the tmgmt_job entity.
Namespace
Drupal\tmgmt\EntityCode
public function getMessagesSince($time = NULL) {
$time = isset($time) ? $time : \Drupal::time()
->getRequestTime();
$conditions = array(
'created' => array(
'value' => $time,
'operator' => '>=',
),
);
return $this
->getMessages($conditions);
}