To exclude by entity type or bundle or both, navigate to Administration > Configuration > Web services > Acquia Content Hub. Click the Exclude from export queue tab, to use the provided multi-select fields:
To alter the default queuing behavior, use the following event:
\Drupal\acquia_contenthub_publisher\Event\ContentHubEntityEligibilityEventEvent subscribers listening to the following endpoint provide examples of how to exclude certain kinds of data:
\Drupal\acquia_contenthub_publisher\AcquiaContentHubPublisherEvents::ENQUEUE_CANDIDATE_ENTITYFor an example of a class that prevents items from being enqueued, download the following file: enqueue-entity-eligibility.php. This class prevents temporary files from entering the export queue.
Preventing data from being queued may not suffice. The dependency calculation process can match any identified entity during processing. Additional identified entities might still join the queue process and pass to the Content Hub service due to their calculated relationship with the data intended for export.
Consider an export scenario. The goal is not to export unchanged data after its initial export. To avoid multiple exports of unchanged data, Content Hub generates a hash of entity values and compares these hash values during the export process. If Content Hub finds a hash value for an entity already exported, it does not export it again. More intricate requests might necessitate further checks.
Dependency tracking can pose challenges and lead to various issues. If there is a need to eliminate a specific type of entity, ensure the removal of any unnecessary dependencies calculated to match that entity. Retaining these dependencies might result in unexpected data communication patterns with no clear link between the syndicated entities.
For an example of a class that removes unmodified entities before publication, download the following file: content-hub-publish-entities.php content-hub-publish-entities.php
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.