You are here

public function SubscriberTracker::getStatusByUuid in Acquia Content Hub 8.2

Get the current status of a particular uuid.

Parameters

string $uuid: The uuid of an entity.

Return value

string The status string.

File

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

Class

SubscriberTracker
Subscriber Tracker database table methods.

Namespace

Drupal\acquia_contenthub_subscriber

Code

public function getStatusByUuid(string $uuid) {
  $query = $this->database
    ->select(self::IMPORT_TRACKING_TABLE, 't')
    ->fields('t', [
    'status',
  ]);
  $query
    ->condition('entity_uuid', $uuid);
  $result = $query
    ->execute()
    ->fetchObject();
  if ($result && $result->status) {
    return $result->status;
  }
}