You are here

public function WSDataService::getError in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/WSDataService.php \Drupal\wsdata\WSDataService::getError()

Return the error from the last call.

File

src/WSDataService.php, line 98

Class

WSDataService
Service for processing WSData requests.

Namespace

Drupal\wsdata

Code

public function getError() {
  if ($this->error) {
    $error = $this->error;
    $this->error = NULL;
    return $error;
  }
  return NULL;
}