src/Security/RateLimiting/RateLimit.php
protected function isAllowed($limit, $config)
    {
        if ($limit["cnt"] >= $config["count"]) {
            if (time() > $limit["ts"] + $config["blockDuration"]) {
                return true;
            } else {
                return false;
            }
        } else {
            return true;
        }
    }
protected function isAllowed($limit, $config)
    {
        if ($limit["cnt"] >= $config["count"]) {
            if (time() > $limit["ts"] + $config["blockDuration"]) {
                return true;
            } else {
                return false;
            }
        } else {
            return true;
        }
    }
Returns whether the entity is currently rate limited

@param array $limit Limit data for the entity
@param array $config Limit configuration
@return boolean false if the entity is rate limited, true otherwise