Dequeues one redirect in the queue and returns that.
A redirect URL or NULL if the queue is empty.
Deprecated in 8.x-1.x, use \Drupal\tmgmt\JobQueue::getNextJob() instead.
function tmgmt_redirect_queue_dequeue() {
if (!empty($_SESSION['tmgmt']['redirect_queue'])) {
return array_shift($_SESSION['tmgmt']['redirect_queue']);
}
}