You are here

protected function SubscriberAudit::deleteTrackingEntity in Acquia Content Hub 8

Deletes an entity from the tracking table.

Parameters

string $uuid: The entity UUID.

string $entity_type: The entity type.

2 calls to SubscriberAudit::deleteTrackingEntity()
SubscriberAudit::deleteEntity in acquia_contenthub_audit/src/SubscriberAudit.php
Deletes a single entity.
SubscriberAudit::executeManifest in acquia_contenthub_audit/src/SubscriberAudit.php
Executes a Manifest file.

File

acquia_contenthub_audit/src/SubscriberAudit.php, line 433

Class

SubscriberAudit
Audits Subscribers.

Namespace

Drupal\acquia_contenthub_audit

Code

protected function deleteTrackingEntity($uuid, $entity_type) {
  $imported_entity = $this->contentHubEntitiesTracking
    ->loadImportedByDrupalEntity($entity_type, $uuid);
  if (!$imported_entity) {
    return;
  }
  $imported_entity
    ->delete();
}