Skip to content

Kirby 6.0.0

$dialogResponse->context()

Setter for context properties

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

Parameters

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

Return type

Kirby\Panel\Response\DialogResponse

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

Parent class

Kirby\Panel\Response\DialogResponse inherited from Kirby\Panel\Response\JsonResponse