Skip to content

Kirby 6.0.0

$drawerResponse->context()

Setter for context properties

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

Parameters

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

Return type

Kirby\Panel\Response\DrawerResponse

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

Parent class

Kirby\Panel\Response\DrawerResponse inherited from Kirby\Panel\Response\JsonResponse