protected function StatusReportController::getClientStatus in Acquia Content Hub 8.2
Determine progress of publisher and subscriber.
Parameters
array $metrics: Current client metrics.
Return value
string Not Found, Queued, In Progress, Complete
1 call to StatusReportController::getClientStatus()
- StatusReportController::getWebhooksPageSection in modules/
acquia_contenthub_publisher/ src/ Controller/ StatusReportController.php - Returns the Webhooks page section.
File
- modules/
acquia_contenthub_publisher/ src/ Controller/ StatusReportController.php, line 395
Class
- StatusReportController
- Controller for Status Reports.
Namespace
Drupal\acquia_contenthub_publisher\ControllerCode
protected function getClientStatus(array $metrics) {
$status = empty($metrics['publisher']['data']) && empty($metrics['subscriber']['data']) ? 'Not Found' : 'Complete';
if (isset($metrics['publisher']['data']['queued']) || isset($metrics['publisher']['data']['exported']) || isset($metrics['subscriber']['data']['queued'])) {
$status = 'In Progress';
}
return $status;
}