You are here

public function WatchdogSyslog::calculateScore in Site Audit 8.3

.

Overrides SiteAuditCheckBase::calculateScore

File

src/Plugin/SiteAuditCheck/WatchdogSyslog.php, line 63

Class

WatchdogSyslog
Provides the WatchdogSyslog Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

public function calculateScore() {
  $this->registry->syslog_enabled = \Drupal::moduleHandler()
    ->moduleExists('syslog');
  if ($this->registry->syslog_enabled) {

    /**
     * TODO sonfigure settings in the web interface and from the DRUSH command line
     * if ($this->options['vendor'] == 'pantheon') {
     * return SiteAuditCheckBase::AUDIT_CHECK_SCORE_FAIL;
     * }
     */
  }
  return SiteAuditCheckBase::AUDIT_CHECK_SCORE_INFO;
}