Skip to content

Kirby 6.0.0

$dialogResponse->toArray()

Converts all relevant response attributes to an associative array for debugging, testing or whatever.

$dialogResponse->toArray(): array{type: string, charset: string, code: int, headers: array, body: string}

Return type

array{type: string, charset: string, code: int, headers: array, body: string}

Parent class

Kirby\Panel\Response\DialogResponse inherited from Kirby\Http\Response