public function JobItem::getMessagesSince

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 956

Class

JobItem
Entity class for the tmgmt_job_item entity.

Namespace

Drupal\tmgmt\Entity

Code

public function getMessagesSince($time = NULL) {
  $time = isset($time) ? $time : \Drupal::time()
    ->getRequestTime();
  $conditions = array(
    'created' => array(
      'value' => $time,
      'operator' => '>=',
    ),
  );
  return $this
    ->getMessages($conditions);
}