You are here

public function BlogapiCommunicator::responseIsError in Blog API 8

Return TRUE if the passed response is an xmlrpc error.

Parameters

$response: The response to evaluate.

Return value

bool Bool that decides if the response is an error or not.

File

src/BlogapiCommunicator.php, line 911

Class

BlogapiCommunicator
Class BlogapiCommunicator.

Namespace

Drupal\blogapi

Code

public function responseIsError($response) {
  if ($response instanceof \stdClass && isset($response->is_error)) {
    if ($response->is_error) {
      return TRUE;
    }
  }
  return FALSE;
}