You are here

public function JobQueue::getNextUrl in Translation Management Tool 8

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();
  }
}