Timber\Pagination::is_search_query PHP Method

is_search_query() public static method

Checks to see whether the given URL has a search query in it (s=*)
public static is_search_query ( string $url ) : boolean
$url string
return boolean
    public static function is_search_query($url)
    {
        global $wp;
        foreach ($wp->public_query_vars as $public_query_var) {
            if (strpos($url, $public_query_var . '=') !== false) {
                return true;
            }
        }
        return false;
    }