You are here

private function EntityManager::enqueueQualifiedEntities in Acquia Content Hub 8

Enqueue array of entities with an operation to be performed on Content Hub.

Parameters

array $entities: A list of entities.

bool $do_export: TRUE if the entity action is 'EXPORT'; FALSE, if it is 'UNEXPORT'.

2 calls to EntityManager::enqueueQualifiedEntities()
EntityManager::enqueueCandidateEntity in src/EntityManager.php
Enqueue an entity with an operation to be performed on Content Hub.
EntityManager::enqueueCandidateParagraph in src/EntityManager.php
Enqueue a paragraph with an operation to be performed on Content Hub.

File

src/EntityManager.php, line 221

Class

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

Namespace

Drupal\acquia_contenthub

Code

private function enqueueQualifiedEntities(array $entities, $do_export) {
  foreach ($entities as $entity) {

    // @todo Paragraphs' handling is hardcoded in Export Entity Manager right
    // now, but need to be refactored out of this class in the future.
    if (!$entity instanceof ParagraphInterface) {
      continue;
    }
    $this
      ->enqueueCandidateParagraph($entity, $do_export);
  }
}