Skip to content

Kirby 6.0.0

$props->has()

Checks if the class has a prop with the given name

$props->has(string $name): bool

Parameters

Name Type Default
$namerequired string no default value

Return type

bool

Parent class

Kirby\Reflection\Props