You are here

public function Check::createResult in Security Review 8

Creates a new CheckResult for this Check.

Parameters

int $result: The result integer (see the constants defined in CheckResult).

array $findings: The findings.

bool $visible: The visibility of the result.

int $time: The time the test was run.

Return value

\Drupal\security_review\CheckResult The created CheckResult.

15 calls to Check::createResult()
AdminPermissions::run in src/Checks/AdminPermissions.php
The actual procedure of carrying out the check.
ErrorReporting::run in src/Checks/ErrorReporting.php
The actual procedure of carrying out the check.
ExecutablePhp::run in src/Checks/ExecutablePhp.php
The actual procedure of carrying out the check.
FailedLogins::run in src/Checks/FailedLogins.php
The actual procedure of carrying out the check.
Field::run in src/Checks/Field.php
The actual procedure of carrying out the check.

... See full list

File

src/Check.php, line 438

Class

Check
Defines a security check.

Namespace

Drupal\security_review

Code

public function createResult($result, array $findings = [], $visible = TRUE, $time = NULL) {
  return new CheckResult($this, $result, $findings, $visible, $time);
}