You are here

public function EntityShareClient::update in Entity Share 7

Update an entity.

Parameters

string $entity_type: Node, etc.

int $entity_id: Entity uuid to update.

mixed $datas: Datas of the request.

Return value

object Object of the response.

File

includes/entity_share.client.inc, line 227
Class for handling communication with Entity Share Server.

Class

EntityShareClient
Entity Share Client class.

Code

public function update($entity_type, $entity_id, $datas) {

  // Append path to endpoint URL.
  $url = $this->endpointUrl . '/' . $entity_type . '/' . $entity_id;
  return $this
    ->call($url, 'PUT', $datas);
}