You are here

public static function Flood::isLoggingEnabled in Acquia Search 3.x

Return boolean value stating if logging is enabled.

Return value

bool If logging is enabled or not.

1 call to Flood::isLoggingEnabled()
Flood::logFloodLimit in src/Helper/Flood.php
Return the window for the given request type.

File

src/Helper/Flood.php, line 72

Class

Flood
Class Flood.

Namespace

Drupal\acquia_search\Helper

Code

public static function isLoggingEnabled() : bool {
  return \Drupal::config('acquia_search.settings')
    ->get('flood_logging') ?? TRUE;
}