class Purge in Acquia Content Hub 8.2
Same name in this branch
- 8.2 modules/acquia_contenthub_subscriber/src/EventSubscriber/HandleWebhook/Purge.php \Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook\Purge
- 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
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\HandleWebhookView source
class Purge extends PurgeBase {
/**
* {@inheritdoc}
*/
protected function getQueueName() : string {
return 'acquia_contenthub_subscriber_import';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Purge:: |
protected | function |
Returns the queue name to delete. Overrides PurgeBase:: |
|
PurgeBase:: |
protected | property | The logger service. | |
PurgeBase:: |
protected | property | The Queue. | |
PurgeBase:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | |
PurgeBase:: |
public | function | On handle webhook event. | |
PurgeBase:: |
protected | function | Reacts on "purge successful" webhook. | 1 |
PurgeBase:: |
protected | constant | The webhook's "purge" event name. | |
PurgeBase:: |
public | function | PurgeBase constructor. | 1 |