Skip to content

Kirby 6.0.0

$responder->body()

Setter and getter for the response body

$responder->body(string|null $body = null): string|null|Responder

Parameters

Name Type Default
$body stringornull null

Return types

stringornullorKirby\Cms\Responder

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

Parent class

Kirby\Cms\Responder