Skip to content

Kirby 6.0.0

$props->type()

Returns the type of value that the prop accepts. A setter may accept more types than the property itself.

$props->type(string $name): string|null

Parameters

Name Type Default
$namerequired string no default value

Return types

stringornull

Parent class

Kirby\Reflection\Props