You are here

public function SecurityReview::isLogging in Security Review 8

Returns true if logging is enabled, otherwise returns false.

Return value

bool A boolean indicating whether logging is enabled.

2 calls to SecurityReview::isLogging()
SecurityReview::log in src/SecurityReview.php
Logs an event.
SecurityReview::logCheckResult in src/SecurityReview.php
Logs a check result.

File

src/SecurityReview.php, line 101

Class

SecurityReview
A class containing static methods regarding the module's configuration.

Namespace

Drupal\security_review

Code

public function isLogging() {

  // Check for temporary logging.
  if (static::$temporaryLogging !== NULL) {
    return static::$temporaryLogging;
  }
  return $this->config
    ->get('log') === TRUE;
}