You are here

public function SubscriberTracker::setQueueItemByUuids in Acquia Content Hub 8.2

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

Parameters

array $uuids: The uuids of entities.

string $queue_id: The status to set.

Throws

\Exception

File

modules/acquia_contenthub_subscriber/src/SubscriberTracker.php, line 299

Class

SubscriberTracker
Subscriber Tracker database table methods.

Namespace

Drupal\acquia_contenthub_subscriber

Code

public function setQueueItemByUuids(array $uuids, string $queue_id) {
  if (!$this
    ->isTracked($uuids)) {
    return;
  }
  $query = $this->database
    ->update(self::IMPORT_TRACKING_TABLE);
  $query
    ->fields([
    'queue_id' => $queue_id,
  ]);
  $query
    ->condition('entity_uuid', $uuids, 'IN');
  $query
    ->execute();
}