public static function Flood::logFloodLimit in Acquia Search 3.x
Return the window for the given request type.
Parameters
string $request_type: The incoming request type.
1 call to Flood::logFloodLimit()
- Flood::isAllowed in src/
Helper/ Flood.php - Determines if a request can be sent via the flood control mechanism.
File
- src/
Helper/ Flood.php, line 82
Class
- Flood
- Class Flood.
Namespace
Drupal\acquia_search\HelperCode
public static function logFloodLimit(string $request_type) {
if (self::isLoggingEnabled()) {
\Drupal::logger('acquia_search')
->warning('Flood protection has blocked request of type @id.', [
'@id' => $request_type,
]);
}
}