Returns the amount of entries in the redirect queue.
The amount of entries in the redirect queue.
Deprecated in 8.x-1.x, use \Drupal\tmgmt\JobQueue::count() instead.
function tmgmt_redirect_queue_count() {
if (!empty($_SESSION['tmgmt']['redirect_queue'])) {
return count($_SESSION['tmgmt']['redirect_queue']);
}
return 0;
}