public function JobQueue::isJobInQueue

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

Return value

bool If the source item is in 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);
}