Skip to content

Kirby 6.0.0

$responder->type()

Setter and getter for the content type

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

Parameters

Name Type Default
$type 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