You are here

public function Check::skippedOn in Security Review 8

Returns the timestamp the check was last skipped on.

Returns 0 if it hasn't been skipped yet.

Return value

int The UNIX timestamp the check was last skipped on (or 0).

File

src/Check.php, line 355

Class

Check
Defines a security check.

Namespace

Drupal\security_review

Code

public function skippedOn() {
  $skipped_on = $this->config
    ->get('skipped_on');
  if (!is_int($skipped_on)) {
    return 0;
  }
  return $skipped_on;
}