Skip to content

Kirby 6.0.0

$dropdownResponse->context()

Setter for context properties

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

Parameters

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

Return type

Kirby\Panel\Response\DropdownResponse

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

Parent class

Kirby\Panel\Response\DropdownResponse inherited from Kirby\Panel\Response\JsonResponse