You are here

private function ImportEntityManager::loadRemoteEntity in Acquia Content Hub 8

Loads the Remote Content Hub Entity.

Parameters

string $uuid: The Remote Entity UUID.

Return value

\Drupal\acquia_contenthub\ContentHubEntityDependency|bool The Content Hub Entity Dependency if found, FALSE otherwise.

2 calls to ImportEntityManager::loadRemoteEntity()
ImportEntityManager::getRemoteDependencies in src/ImportEntityManager.php
Obtains First-level remote dependencies for the current Content Hub Entity.
ImportEntityManager::importRemoteEntity in src/ImportEntityManager.php
Saves a Content Hub Entity into a Drupal Entity, given its UUID.

File

src/ImportEntityManager.php, line 313

Class

ImportEntityManager
Provides a service for managing imported entities' actions.

Namespace

Drupal\acquia_contenthub

Code

private function loadRemoteEntity($uuid) {
  $entity = $this->clientManager
    ->createRequest('readEntity', [
    $uuid,
  ]);
  if (!$entity) {
    return FALSE;
  }
  return new ContentHubEntityDependency($entity);
}