You are here

protected function PurgeBase::onPurgeSuccessful in Acquia Content Hub 8.2

Reacts on "purge successful" webhook.

2 calls to PurgeBase::onPurgeSuccessful()
Purge::onPurgeSuccessful in modules/acquia_contenthub_publisher/src/EventSubscriber/HandleWebhook/Purge.php
Reacts on "purge successful" webhook.
PurgeBase::onHandleWebhook in src/EventSubscriber/HandleWebhook/PurgeBase.php
On handle webhook event.
1 method overrides PurgeBase::onPurgeSuccessful()
Purge::onPurgeSuccessful in modules/acquia_contenthub_publisher/src/EventSubscriber/HandleWebhook/Purge.php
Reacts on "purge successful" webhook.

File

src/EventSubscriber/HandleWebhook/PurgeBase.php, line 89

Class

PurgeBase
Class PurgeBase.

Namespace

Drupal\acquia_contenthub\EventSubscriber\HandleWebhook

Code

protected function onPurgeSuccessful() {

  // Delete queue.
  $this->queue
    ->deleteQueue();
  $this->logger
    ->info('Queue @queue has been purged successfully.', [
    '@queue' => $this
      ->getQueueName(),
  ]);
}