public function JobQueue::markJobAsProcessed in Translation Management Tool 8
Remove job jobs from the queue without marking them as processed.
Parameters
\Drupal\tmgmt\JobInterface $job: Job to be marked as processed.
File
- src/
JobQueue.php, line 105
Class
- JobQueue
- Represents a job (checkout) queue.
Namespace
Drupal\tmgmtCode
public function markJobAsProcessed(JobInterface $job) {
if ($this
->isJobInQueue($job)) {
$this->processed++;
}
unset($this->queue[array_search($job
->id(), $this->queue)]);
}