Skip to content

Kirby 4.2.0

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