You are here

public function PublisherTracker::isTracked in Acquia Content Hub 8.2

Checks if a particular entity uuid is tracked.

Parameters

string $uuid: The uuid of an entity.

Return value

bool Whether or not the entity is tracked in the subscriber tables.

1 call to PublisherTracker::isTracked()
PublisherTracker::setQueueItemByUuid in modules/acquia_contenthub_publisher/src/PublisherTracker.php
Set the queue item of a particular record by its uuid.

File

modules/acquia_contenthub_publisher/src/PublisherTracker.php, line 235

Class

PublisherTracker
The publisher tracker table class.

Namespace

Drupal\acquia_contenthub_publisher

Code

public function isTracked(string $uuid) {
  $query = $this->database
    ->select(self::EXPORT_TRACKING_TABLE, 't');
  $query
    ->fields('t', [
    'entity_type',
    'entity_id',
  ]);
  $query
    ->condition('entity_uuid', $uuid);
  return (bool) $query
    ->execute()
    ->fetchObject();
}