public function Client::delete in Little helpers 7
Same name and namespace in other branches
- 7.2 src/Rest/Client.php \Drupal\little_helpers\Rest\Client::delete()
Send a DELETE request to the API.
Parameters
string $path: The path to call.
array $query: An array of query parameters.
array $options: Options for @see drupal_http_request().
Return value
array The decoded data from the response.
File
- src/
Rest/ Client.php, line 97
Class
- Client
- This a simple JSON REST Client based on drupal_http_request().
Namespace
Drupal\little_helpers\RestCode
public function delete($path, array $query = [], array $options = []) {
$options['method'] = 'DELETE';
return $this
->send($path, $query, NULL, $options);
}