function tmgmt_redirect_queue_count in Translation Management Tool 8
Returns the amount of entries in the redirect queue.
Return value
The amount of entries in the redirect queue.
Deprecated
Deprecated in 8.x-1.x, use \Drupal\tmgmt\JobQueue::count() instead.
File
- ./
tmgmt.module, line 908 - Main module file for the Translation Management module.
Code
function tmgmt_redirect_queue_count() {
if (!empty($_SESSION['tmgmt']['redirect_queue'])) {
return count($_SESSION['tmgmt']['redirect_queue']);
}
return 0;
}