public function DeployServicesClient::get in Deploy Services Client 7
Performs a GET request to retrieve data about an entity from the endpoint.
Parameters
EntityMetadataWrapper $entity: The entity object to retrieve data about. Construct this by calling entity_metadata_wrapper() on a normal Drupal entity.
Return value
The response data from the endpoint. This will be FALSE if the entity is not found on the endpoint site.
Throws
File
- ./
deploy_services_client.client.inc, line 184 - Defines a Services client class which communicates with Deployment endpoints.
Class
- DeployServicesClient
- Class which defines a Services client based on a Deployment endpoint.
Code
public function get(EntityMetadataWrapper $entity) {
$response = $this
->entityRequest($entity, 'GET');
return empty($response->data) ? FALSE : drupal_json_decode($response->data);
}