You are here

public function JobQueue::resetQueue in Translation Management Tool 8

Remove all contents from the queue.

1 call to JobQueue::resetQueue()
JobQueue::startQueue in src/JobQueue.php
Initializes the queue with a set of jobs, resets the queue.

File

src/JobQueue.php, line 166

Class

JobQueue
Represents a job (checkout) queue.

Namespace

Drupal\tmgmt

Code

public function resetQueue() {
  $this->queue = [];
  $this->processed = 0;
  $this->destination = NULL;
}