You are here

class PrunePublishCdfEntitiesEvent in Acquia Content Hub 8.2

Class TrackTotalsEvent.

@package Drupal\acquia_contenthub\Event

Hierarchy

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
PrunePublishCdfEntitiesEvent::$client protected property Keep track of the CH client.
PrunePublishCdfEntitiesEvent::$document private property CDF Document.
PrunePublishCdfEntitiesEvent::$origin private property Origin.
PrunePublishCdfEntitiesEvent::getClient public function Exposes the client.
PrunePublishCdfEntitiesEvent::getDocument public function Get Document.
PrunePublishCdfEntitiesEvent::getOrigin public function Get Origin.
PrunePublishCdfEntitiesEvent::__construct public function TrackTotalsEvent constructor.