You are here

public function Checklist::storeResults in Security Review 8

Stores an array of CheckResults.

Parameters

\Drupal\security_review\CheckResult[] $results: The CheckResults to store.

1 call to Checklist::storeResults()
Checklist::runChecklist in src/Checklist.php
Runs enabled checks and stores their results.

File

src/Checklist.php, line 183

Class

Checklist
Contains static functions for handling checks throughout every module.

Namespace

Drupal\security_review

Code

public function storeResults(array $results) {
  foreach ($results as $result) {
    $result
      ->check()
      ->storeResult($result);
  }
}