You are here

public function PublisherTracker::setQueueItemByUuid in Acquia Content Hub 8.2

Set the queue item of a particular record by its uuid.

Parameters

string $uuid: The uuid of an entity.

string $queue_id: The status to set.

Throws

\Exception

File

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

Class

PublisherTracker
The publisher tracker table class.

Namespace

Drupal\acquia_contenthub_publisher

Code

public function setQueueItemByUuid(string $uuid, string $queue_id) {
  if (!$this
    ->isTracked($uuid)) {
    return;
  }
  $query = $this->database
    ->update(self::EXPORT_TRACKING_TABLE);
  $query
    ->fields([
    'queue_id' => $queue_id,
  ]);
  $query
    ->condition('entity_uuid', $uuid);
  $query
    ->execute();
}