You are here

protected function Purge::onPurgeSuccessful in Acquia Content Hub 8.2

Reacts on "purge successful" webhook.

Overrides PurgeBase::onPurgeSuccessful

See also

\Drupal\acquia_contenthub\EventSubscriber\HandleWebhook\PurgeBase::onHandleWebhook()

File

modules/acquia_contenthub_publisher/src/EventSubscriber/HandleWebhook/Purge.php, line 54

Class

Purge
Class PurgePublisher.

Namespace

Drupal\acquia_contenthub_publisher\EventSubscriber\HandleWebhook

Code

protected function onPurgeSuccessful() {
  parent::onPurgeSuccessful();
  $this->database
    ->truncate('acquia_contenthub_publisher_export_tracking')
    ->execute();
  $this->logger
    ->info('Database table "acquia_contenthub_publisher_export_tracking" has been truncated successfully.');
}