You are here

public function CampaignMonitor::getErrors in Campaign Monitor 8

Returns the internal error array with the format below.

$errors[] = array( 'type' => [watchdog error type], 'code' => [error code], 'message' => [message], );

Return value

mixed array | FALSE An array of errors or FALSE if the array is empty.

File

src/CampaignMonitor.php, line 231
Implementation of the CampaignMonitor class, which is a wrapper class for Campaign Monitor v3 API. It's implemented as a Singleton class and instances are created using the account variables and the static function getConnector(). An example:.

Class

CampaignMonitor

Namespace

Drupal\campaignmonitor

Code

public function getErrors() {
  if (count($this->errors)) {
    return $this->errors;
  }
  return FALSE;
}