You are here

public function PublisherTracker::nullifyQueueId in Acquia Content Hub 8.2

Nullify queue_id when entities lose their queued state.

Parameters

string $uuid: The uuid of an entity.

File

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

Class

PublisherTracker
The publisher tracker table class.

Namespace

Drupal\acquia_contenthub_publisher

Code

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