You are here

public function ContentHubEntitiesTracking::loadExportedByUuid in Acquia Content Hub 8

Loads an Exported Entity tracking record by UUID.

Parameters

string $entity_uuid: The entity uuid.

Return value

\Drupal\acquia_contenthub\ContentHubEntitiesTracking|bool The ContentHubEntitiesTracking object if it exists and is exported, FALSE otherwise.

File

src/ContentHubEntitiesTracking.php, line 694

Class

ContentHubEntitiesTracking
Tracks in a table the list of all entities imported from Content Hub.

Namespace

Drupal\acquia_contenthub

Code

public function loadExportedByUuid($entity_uuid) {
  if ($exported_entity = $this
    ->loadByUuid($entity_uuid)) {
    return $exported_entity
      ->isExportedEntity();
  }
  return FALSE;
}