public function Check::enable in Security Review 8
Enables the check. Has no effect if the check was not skipped.
File
- src/
Check.php, line 367
Class
- Check
- Defines a security check.
Namespace
Drupal\security_reviewCode
public function enable() {
if ($this
->isSkipped()) {
$this->config
->set('skipped', FALSE);
$this->config
->save();
// Log.
$context = [
'@name' => $this
->getTitle(),
];
$this
->securityReview()
->log($this, '@name check no longer skipped', $context, RfcLogLevel::NOTICE);
}
}