public static function Flood::isControlled in Acquia Search 3.x
Check that the given ID is a valid string from a list of defined values.
Parameters
string $request_type: The incoming request type.
Return value
bool If the request type is controlled
1 call to Flood::isControlled()
- 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 100
Class
- Flood
- Class Flood.
Namespace
Drupal\acquia_search\HelperCode
public static function isControlled(string $request_type) : bool {
$defaults = self::getFloodDefaults();
return isset($defaults[$request_type]);
}