$viewResponse->context()
Setter for context properties
$viewResponse->context(Area|null $area = null, string|null $path = null, array $query = [], string $referrer = '/'): ViewResponse
Parameters
| Name | Type | Default |
|---|---|---|
| $area | Kirby\Panel\Areaornull |
null
|
| $path | stringornull |
null
|
| $query | array |
[]
|
| $referrer | string |
'/'
|
Return type
Kirby\Panel\Response\ViewResponse
This method does not modify the existing $viewresponse object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Panel\Response\ViewResponse
inherited from Kirby\Panel\Response\JsonResponse