You are here

public function CampaignMonitorManager::getErrors in Campaign Monitor 8.2

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/CampaignMonitorManager.php, line 308

Class

CampaignMonitorManager
Manager for Campaignmonitor.

Namespace

Drupal\campaignmonitor

Code

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