public function UpdateTracking::onDeleteRemoteEntity in Acquia Content Hub 8.2
Removes deleted remote entities from the publisher tracking table.
Parameters
\Drupal\acquia_contenthub\Event\DeleteRemoteEntityEvent $event: The DeleteRemoteEntityEvent object.
Throws
\Exception
File
- modules/
acquia_contenthub_publisher/ src/ EventSubscriber/ DeleteRemoteEntity/ UpdateTracking.php, line 59
Class
- UpdateTracking
- Removes deleted remote entities from the publisher tracking table.
Namespace
Drupal\acquia_contenthub_publisher\EventSubscriber\DeleteRemoteEntityCode
public function onDeleteRemoteEntity(DeleteRemoteEntityEvent $event) {
if ($this->tracker
->get($event
->getUuid())) {
$this->tracker
->delete($event
->getUuid());
$this->channel
->info(sprintf("Removed tracking for entity with UUID = \"%s\".", $event
->getUuid()));
}
}