public function TrackTotals::onPromotePublisherEntityStatusTrackTotals in Acquia Content Hub 8.2
Event Handler onPromotePublisherEntityStatusTrackTotals.
Parameters
\Drupal\acquia_contenthub\Event\BuildClientCdfEvent $event: The build client cdf event data.
File
- modules/
acquia_contenthub_publisher/ src/ EventSubscriber/ PromoteEntityStatusTrack/ TrackTotals.php, line 52
Class
- TrackTotals
- Class TrackTotals to track published entities in the client CDF object.
Namespace
Drupal\acquia_contenthub_publisher\EventSubscriber\PromoteEntityStatusTrackCode
public function onPromotePublisherEntityStatusTrackTotals(BuildClientCdfEvent $event) : void {
$cdf = $event
->getCdf();
$metadata = $cdf
->getMetadata();
$metadata['metrics']['publisher'] = $this->tracker
->getStatusMetrics($this->tracker::EXPORT_TRACKING_TABLE, 'modified');
$cdf
->setMetadata($metadata);
}