You are here

public function ContentHubExportQueueController::getQueueCount in Acquia Content Hub 8

Obtains the number of items in the export queue.

Return value

mixed The number of items in the export queue.

File

src/Controller/ContentHubExportQueueController.php, line 150

Class

ContentHubExportQueueController
Implements an Export Queue Controller for Content Hub.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function getQueueCount() {
  $queue = $this->queueFactory
    ->get('acquia_contenthub_export_queue');
  return $queue
    ->numberOfItems();
}