You are here

public function EntityManager::updateRemoteEntities in Acquia Content Hub 8

Sends the entities for update to Content Hub.

Parameters

string $resource_url: The Resource Url.

Return value

bool|mixed Returns the response or FALSE otherwise.

File

src/EntityManager.php, line 292

Class

EntityManager
Provides a service for managing entity actions for Content Hub.

Namespace

Drupal\acquia_contenthub

Code

public function updateRemoteEntities($resource_url) {
  $response = $this->clientManager
    ->createRequest('updateEntities', [
    $resource_url,
  ]);
  if (method_exists($response, 'getBody')) {
    $response = Json::decode($response
      ->getBody());
  }
  return $response;
}