You are here

private function EntityManager::unexportCandidateEntities in Acquia Content Hub 8

Delete entities from Content Hub that are explicitly un-exported.

1 call to EntityManager::unexportCandidateEntities()
EntityManager::bulkExport in src/EntityManager.php
Bulk-export all the enqueued entities.

File

src/EntityManager.php, line 333

Class

EntityManager
Provides a service for managing entity actions for Content Hub.

Namespace

Drupal\acquia_contenthub

Code

private function unexportCandidateEntities() {
  $candidate_entites = $this->candidateEntities[self::UNEXPORT];
  foreach ($candidate_entites as $uuid => $candidate_entity) {
    $this
      ->deleteRemoteEntity($candidate_entity);
    unset($this->candidateEntities[self::UNEXPORT][$uuid]);
  }
}