public function JobQueue::getNextUrl

Returns URL from the queue.

Return value

\Drupal\Core\Url|null A URL or NULL if the queue is empty.

File

src/JobQueue.php, line 156

Class

JobQueue
Represents a job (checkout) queue.

Namespace

Drupal\tmgmt

Code

public function getNextUrl() {
  if ($job = $this
    ->getNextJob()) {
    return $job
      ->toUrl();
  }
}