public function Checklist::getEnabledChecks in Security Review 8
Returns the enabled Checks.
Return value
\Drupal\security_review\Check[] Array of enabled Checks.
1 call to Checklist::getEnabledChecks()
- Checklist::runChecklist in src/
Checklist.php - Runs enabled checks and stores their results.
File
- src/
Checklist.php, line 103
Class
- Checklist
- Contains static functions for handling checks throughout every module.
Namespace
Drupal\security_reviewCode
public function getEnabledChecks() {
$enabled = [];
foreach (static::getChecks() as $check) {
if (!$check
->isSkipped()) {
$enabled[] = $check;
}
}
return $enabled;
}