You are here

public function ContentHubExportQueueController::purgeQueue in Acquia Content Hub 8

Execute the delete function for the ACH Export Queue.

File

src/Controller/ContentHubExportQueueController.php, line 158

Class

ContentHubExportQueueController
Implements an Export Queue Controller for Content Hub.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function purgeQueue() {
  $queue = $this->queueFactory
    ->get('acquia_contenthub_export_queue');
  $queue
    ->deleteQueue();
}