public function JobItem::getMessagesSince in Translation Management Tool 8
Returns all job item messages attached to this job item with timestamp newer than $time.
Parameters
int $time: (Optional) Messages need to have a newer timestamp than $time. Defaults to REQUEST_TIME.
Return value
array An array of translation job item messages.
Overrides JobItemInterface::getMessagesSince
File
- src/
Entity/ JobItem.php, line 937
Class
- JobItem
- Entity class for the tmgmt_job_item 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);
}