Skip to content

Kirby 6.0.0

$responder->toArray()

Converts the response configuration to an array

$responder->toArray(): array{body: string|null, code: int|null, headers: array, type: string|null}

Return type

array{body: string|null, code: int|null, headers: array<string, string>, type: string|null}

Parent class

Kirby\Cms\Responder