You are here

public function PublisherTracker::get in Acquia Content Hub 8.2

Gets the tracking entity for a given uuid.

Parameters

string $uuid: The entity uuid.

Return value

\Drupal\Core\Database\StatementInterface|int|null Database statement

1 call to PublisherTracker::get()
PublisherTracker::insertOrUpdate in modules/acquia_contenthub_publisher/src/PublisherTracker.php
Determines if an entity will be inserted or updated with a status.

File

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

Class

PublisherTracker
The publisher tracker table class.

Namespace

Drupal\acquia_contenthub_publisher

Code

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