You are here

public function SubscriberAudit::deleteEntities in Acquia Content Hub 8

Delete Entities.

Parameters

array $entity_type_ids: An array of entity type ids we want to search and delete.

File

acquia_contenthub_audit/src/SubscriberAudit.php, line 398

Class

SubscriberAudit
Audits Subscribers.

Namespace

Drupal\acquia_contenthub_audit

Code

public function deleteEntities(array $entity_type_ids = []) {
  $entities = $this
    ->findEntitiesToDelete($entity_type_ids);
  foreach ($entities['delete'] as $uuid => $entity) {
    $this
      ->deleteEntity($uuid, $entity->entity_type);
  }
}