You are here

private function SecurityReviewController::getSecurityReviewResults in Acquia Connector 3.x

Same name and namespace in other branches
  1. 8.2 src/Controller/SecurityReviewController.php \Drupal\acquia_connector\Controller\SecurityReviewController::getSecurityReviewResults()
  2. 8 src/Controller/SecurityReviewController.php \Drupal\acquia_connector\Controller\SecurityReviewController::getSecurityReviewResults()

Private function the review and returns the full results.

Parameters

array $checklist: Array of checks.

bool $log: If TRUE logs result.

Return value

array Result.

1 call to SecurityReviewController::getSecurityReviewResults()
SecurityReviewController::securityReviewRun in src/Controller/SecurityReviewController.php
Function for running Security Review checklist and returning results.

File

src/Controller/SecurityReviewController.php, line 95

Class

SecurityReviewController
Acquia Security Review page.

Namespace

Drupal\acquia_connector\Controller

Code

private function getSecurityReviewResults(array $checklist, $log = FALSE) {
  $results = [];
  foreach ($checklist as $module => $checks) {
    foreach ($checks as $check_name => $arguments) {
      $check_result = $this
        ->getSecurityReviewRunCheck($module, $check_name, $arguments, $log);
      if (!empty($check_result)) {
        $results[$module][$check_name] = $check_result;
      }
    }
  }
  return $results;
}