You are here

public function AcquiaPurgeDiagnostics::isSystemBlocked in Acquia Purge 7

Is the system blocked by an error? If so, retrieve the error.

Return value

bool|array FALSE|Array that complies to the format as seen in hook_requirements().

File

lib/AcquiaPurgeDiagnostics.php, line 153
Contains AcquiaPurgeExecutorsService.

Class

AcquiaPurgeDiagnostics
Provides access to the diagnostic tests.

Code

public function isSystemBlocked() {
  if (is_null($this->isSystemBlocked)) {
    $errors = $this
      ->get(ACQUIA_PURGE_SEVLEVEL_ERROR);
    $this->isSystemBlocked = empty($errors) ? FALSE : current($errors);
  }
  return $this->isSystemBlocked;
}