function _acquia_purge_diagnostics_queue in Acquia Purge 7
Queue.
Parameters
string $t: Name of the t() function to call.
AcquiaPurgeService $service: The Acquia Purge service.
Return value
array Associative array with the following elements:
- title: The name of the requirement.
- value: The current value (e.g., version, time, level, etc).
- description: The description of the requirement/status.
- severity:
- ACQUIA_PURGE_SEVLEVEL_INFO
- ACQUIA_PURGE_SEVLEVEL_OK
- ACQUIA_PURGE_SEVLEVEL_WARNING
- ACQUIA_PURGE_SEVLEVEL_ERROR <-- blocks Acquia Purge from executing!
1 string reference to '_acquia_purge_diagnostics_queue'
File
- ./
acquia_purge.diagnostics.inc, line 1012 - Diagnostic self-tests and reports that aim to prevent runtime misery.
Code
function _acquia_purge_diagnostics_queue($t, $service) {
$stats = $service
->stats();
if ($stats['remaining'] === 0) {
$value = $t('Empty');
}
else {
$value = $t('Contains @d items.', array(
'@d' => $stats['remaining'],
));
}
return array(
'title' => $t('Queue'),
'value' => $value,
'severity' => ACQUIA_PURGE_SEVLEVEL_OK,
);
}