You are here

public function TestRestClient::objectDelete in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objectDelete()
  2. 5.0.x src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objectDelete()

Delete a Salesforce object.

Note: if Object with given $id doesn't exist, objectDelete() will assume success unless $throw_exception is given.

Parameters

string $name: Object type name, E.g., Contact, Account.

string $id: Salesforce id of the object.

bool $throw_exception: (optional) If TRUE, 404 response code will cause RequestException to be thrown. Otherwise, hide those errors. Default is FALSE.

Return value

null Delete() doesn't return any data. Examine HTTP response or Exception.

Overrides RestClient::objectDelete

File

src/Tests/TestRestClient.php, line 153

Class

TestRestClient
Test Salesforce REST client.

Namespace

Drupal\salesforce\Tests

Code

public function objectDelete($name, $id, $throw_exception = FALSE) {

  // Object delete does... NOTHING!
  return NULL;
}