You are here

public function EntityShareClient::delete in Entity Share 7

Delete an entity.

Parameters

string $entity_type: Node, etc.

int $entity_id: Entity uuid to delete.

Return value

object Object of the response.

File

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

Class

EntityShareClient
Entity Share Client class.

Code

public function delete($entity_type, $entity_id) {

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