Skip to content

Kirby 4.4.1

Response::guardAgainstOutput()

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

Response::guardAgainstOutput(Closure $callback, ...$args = null): mixed|null

Parameters

Name Type Default
$callback * Closure
... $args mixed null

Return type

mixed|null

Parent class

Kirby\Cms\Response inherited from Kirby\Http\Response