function _acquia_purge_queue_is_user_purging in Acquia Purge 7
Same name and namespace in other branches
- 6 acquia_purge.module \_acquia_purge_queue_is_user_purging()
DEPRECATED: Determines if the current user owns a running purge session.
File
- ./
acquia_purge.deprecated.inc, line 306 - Deprecated functions.
Code
function _acquia_purge_queue_is_user_purging() {
_acquia_purge_deprecated('AcquiaPurgeProcessorAjax::isUserOwningTheQueue()');
// Since ::isUserOwningTheQueue is static, call it through a small loophole.
$service = _acquia_purge_service();
$ajaxprocessor = $service
->processors()
->get('AcquiaPurgeProcessorAjax');
return $ajaxprocessor::isUserOwningTheQueue($service);
}