You are here

protected function EntityDeleteHandler::doSync in Services Client 7.2

Execute sync action.

Overrides EventHandler::doSync

1 call to EntityDeleteHandler::doSync()
EntityDeleteHandler::execute in include/event.inc
Execute event and send event to remove endpoint.

File

include/event.inc, line 1113

Class

EntityDeleteHandler
General entity delete handler.

Code

protected function doSync($object) {
  $id = $this
    ->getRemoteEntityId();
  if (!empty($id)) {
    $this
      ->getConnection()
      ->delete($this->config['resource'], $id);
    return $this
      ->getConnection()
      ->getResponse();
  }
}