You are here

class Purge in Acquia Content Hub 8.2

Same name in this branch
  1. 8.2 modules/acquia_contenthub_subscriber/src/EventSubscriber/HandleWebhook/Purge.php \Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook\Purge
  2. 8.2 modules/acquia_contenthub_publisher/src/EventSubscriber/HandleWebhook/Purge.php \Drupal\acquia_contenthub_publisher\EventSubscriber\HandleWebhook\Purge

Class PurgeSubscriber.

Reacts on "purge" webhook and purges the subscriber's import queue.

@package Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook

Hierarchy

  • class \Drupal\acquia_contenthub\EventSubscriber\HandleWebhook\PurgeBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
    • class \Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook\Purge

Expanded class hierarchy of Purge

2 string references to 'Purge'
acquia_contenthub_subscriber.services.yml in modules/acquia_contenthub_subscriber/acquia_contenthub_subscriber.services.yml
modules/acquia_contenthub_subscriber/acquia_contenthub_subscriber.services.yml
ContentHubExportQueueForm::buildForm in modules/acquia_contenthub_publisher/src/Form/ContentHubExportQueueForm.php
Form constructor.
1 service uses Purge
acquia_contenthub_subscriber.handle_webhook.purge in modules/acquia_contenthub_subscriber/acquia_contenthub_subscriber.services.yml
Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook\Purge

File

modules/acquia_contenthub_subscriber/src/EventSubscriber/HandleWebhook/Purge.php, line 15

Namespace

Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook
View source
class Purge extends PurgeBase {

  /**
   * {@inheritdoc}
   */
  protected function getQueueName() : string {
    return 'acquia_contenthub_subscriber_import';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Purge::getQueueName protected function Returns the queue name to delete. Overrides PurgeBase::getQueueName
PurgeBase::$logger protected property The logger service.
PurgeBase::$queue protected property The Queue.
PurgeBase::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to.
PurgeBase::onHandleWebhook public function On handle webhook event.
PurgeBase::onPurgeSuccessful protected function Reacts on "purge successful" webhook. 1
PurgeBase::PURGE protected constant The webhook's "purge" event name.
PurgeBase::__construct public function PurgeBase constructor. 1