You are here

private function SecurityReviewController::securityReviewGetChecks in Acquia Connector 8

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

Helper function allows for collection of this file's security checks.

1 call to SecurityReviewController::securityReviewGetChecks()
SecurityReviewController::runSecurityReview in src/Controller/SecurityReviewController.php
Run some checks from the Security Review module.

File

src/Controller/SecurityReviewController.php, line 173

Class

SecurityReviewController
Acquia Security Review page.

Namespace

Drupal\acquia_connector\Controller

Code

private function securityReviewGetChecks() {

  // Use Security Review's checks if available.
  if ($this
    ->moduleHandler()
    ->moduleExists('security_review') && function_exists('security_review_security_checks')) {
    return $this
      ->moduleHandler()
      ->invokeAll('security_checks');
  }
  else {
    return $this
      ->securityReviewSecurityChecks();
  }
}