Skip to content

Kirby 3.9.8

Factory::forUnionType()

For properties with union types, the first named type is used to create the factory or pass a built-in value

Factory::forUnionType(ReflectionUnionType $type, $value)

Parameters

Name Type Default
$type * ReflectionUnionType –
$value * mixed –

Parent class

Kirby\Blueprint\Factory