Skip to content

Kirby 4.4.1

ModelUuid::for()

Shorthand to create instance by passing either UUID or model

ModelUuid::for(Kirby\Uuid\Identifiable|string $seed, ?Kirby\Cms\Collection $context = null): Kirby\Uuid\ModelUuid|null

Parameters

Name Type Default
$seed * Kirby\Uuid\Identifiable|string
$context Kirby\Cms\Collection|null null

Return type

Kirby\Uuid\ModelUuid|null

Parent class

Kirby\Uuid\ModelUuid inherited from Kirby\Uuid\Uuid