You are here

public function JobQueue::isJobInQueue in Translation Management Tool 8

Checks if the source item has been added into the queue.

Return value

bool If the source item is in the queue.

2 calls to JobQueue::isJobInQueue()
JobQueue::markJobAsProcessed in src/JobQueue.php
Remove job jobs from the queue without marking them as processed.
JobQueue::startQueue in src/JobQueue.php
Initializes the queue with a set of jobs, resets the queue.

File

src/JobQueue.php, line 85

Class

JobQueue
Represents a job (checkout) queue.

Namespace

Drupal\tmgmt

Code

public function isJobInQueue(JobInterface $job) {
  return in_array($job
    ->id(), $this->queue);
}