Initializes the queue with a set of jobs, resets the queue.
\Drupal\tmgmt\JobInterface[] $jobs: Job jobs to be added.
string $destination: (optional) A destination to redirect to after the queue is finished.
public function startQueue(array $jobs, $destination = NULL) {
$this
->resetQueue();
foreach ($jobs as $job) {
if (!$this
->isJobInQueue($job)) {
$this->queue[] = $job
->id();
}
}
$this
->setDestination($destination);
}