Skip to content

Kirby 6.0.0

ViewResponse::guardAgainstOutput()

Ensures that the callback does not produce any body output (used to show when loading a file creates side effects)

ViewResponse::guardAgainstOutput(Closure $callback, mixed ...$args): mixed

Parameters

Name Type Default
$callbackrequired Closure no default value
...$args mixed no default value

Return type

mixed

Parent class

Kirby\Panel\Response\ViewResponse inherited from Kirby\Http\Response