Skip to content

Kirby 6.0.0

$requestResponse->context()

Setter for context properties

$requestResponse->context(Area|null $area = null, string|null $path = null, array $query = [], string $referrer = '/'): RequestResponse

Parameters

Name Type Default
$area Kirby\Panel\Areaornull null
$path stringornull null
$query array []
$referrer string '/'

Return type

Kirby\Panel\Response\RequestResponse

This method does not modify the existing $requestresponse object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Panel\Response\RequestResponse inherited from Kirby\Panel\Response\JsonResponse