You are here

public function ContentHubEntitiesTracking::loadImportedByUuid in Acquia Content Hub 8

Loads an Imported 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 imported, FALSE otherwise.

File

src/ContentHubEntitiesTracking.php, line 711

Class

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

Namespace

Drupal\acquia_contenthub

Code

public function loadImportedByUuid($entity_uuid) {
  if ($imported_entity = $this
    ->loadByUuid($entity_uuid)) {
    return $imported_entity
      ->isImportedEntity();
  }
  return FALSE;
}