You are here

public function Scanner::isEnabled in ClamAV 8

Same name and namespace in other branches
  1. 2.x src/Scanner.php \Drupal\clamav\Scanner::isEnabled()

Check whether the anti-virus checks are enabled.

Return value

boolean TRUE if files should be scanned.

File

src/Scanner.php, line 65

Class

Scanner
Service class for the ClamAV scanner instance.

Namespace

Drupal\clamav

Code

public function isEnabled() {
  return $this->config
    ->enabled();
}