You are here

public function Scanner::isEnabled in ClamAV 2.x

Same name and namespace in other branches
  1. 8 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();
}