Skip to content

Kirby 5.1.1

$request->is()

Checks if the given method name matches the name of the request method.

$request->is(string $method): bool

Parameters

Name Type Default
$methodrequired string no default value

Return type

bool

This method modifies the existing $request object it is applied to and returns it again.

Parent class

Kirby\Http\Request