You are here

public function MailgunHandler::moduleStatus in Mailgun 8

Validates Mailgun library and API settings.

Parameters

bool $showMessage: Whether error messages should be shown.

Return value

bool Whether the library installed and API settings are ok.

Overrides MailgunHandlerInterface::moduleStatus

File

src/MailgunHandler.php, line 184

Class

MailgunHandler
Mail handler to send out an email message array to the Mailgun API.

Namespace

Drupal\mailgun

Code

public function moduleStatus($showMessage = FALSE) {
  return $this
    ->validateMailgunLibrary($showMessage) && $this
    ->validateMailgunApiSettings($showMessage);
}