class PrunePublishCdfEntitiesEvent in Acquia Content Hub 8.2
Class TrackTotalsEvent.
@package Drupal\acquia_contenthub\Event
Hierarchy
- class \Drupal\acquia_contenthub\Event\PrunePublishCdfEntitiesEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of PrunePublishCdfEntitiesEvent
3 files declare their use of PrunePublishCdfEntitiesEvent
- ContentHubExportQueueWorker.php in modules/
acquia_contenthub_publisher/ src/ Plugin/ QueueWorker/ ContentHubExportQueueWorker.php - PruneImportedEntitiesFromExport.php in modules/
acquia_contenthub_subscriber/ src/ EventSubscriber/ PrunePublishEntities/ PruneImportedEntitiesFromExport.php - PruneImportedEntitiesFromExportTest.php in tests/
src/ Kernel/ EventSubscriber/ ExportUnownedContentOnDualConfigSites/ PruneImportedEntitiesFromExportTest.php
File
- src/
Event/ PrunePublishCdfEntitiesEvent.php, line 14
Namespace
Drupal\acquia_contenthub\EventView source
class PrunePublishCdfEntitiesEvent extends Event {
/**
* Keep track of the CH client.
*
* @var \Acquia\ContentHubClient\ContentHubClient
*/
protected $client;
/**
* CDF Document.
*
* @var \Acquia\ContentHubClient\CDFDocument
*/
private $document;
/**
* Origin.
*
* @var string
*/
private $origin;
/**
* TrackTotalsEvent constructor.
*
* @param \Acquia\ContentHubClient\ContentHubClient $client
* Content Hub Client.
* @param \Acquia\ContentHubClient\CDFDocument $document
* CDF Document.
* @param string $origin
* Origin.
*/
public function __construct(ContentHubClient $client, CDFDocument $document, string $origin) {
$this->client = $client;
$this->document = $document;
$this->origin = $origin;
}
/**
* Get Origin.
*
* @return string
* Origin value.
*/
public function getOrigin() : string {
return $this->origin;
}
/**
* Get Document.
*
* @return \Acquia\ContentHubClient\CDFDocument
* CDF Document.
*/
public function getDocument() : CDFDocument {
return $this->document;
}
/**
* Exposes the client.
*
* @return \Acquia\ContentHubClient\ContentHubClient
* Content Hub Client.
*/
public function getClient() : ContentHubClient {
return $this->client;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrunePublishCdfEntitiesEvent:: |
protected | property | Keep track of the CH client. | |
PrunePublishCdfEntitiesEvent:: |
private | property | CDF Document. | |
PrunePublishCdfEntitiesEvent:: |
private | property | Origin. | |
PrunePublishCdfEntitiesEvent:: |
public | function | Exposes the client. | |
PrunePublishCdfEntitiesEvent:: |
public | function | Get Document. | |
PrunePublishCdfEntitiesEvent:: |
public | function | Get Origin. | |
PrunePublishCdfEntitiesEvent:: |
public | function | TrackTotalsEvent constructor. |