Skip to content

Kirby 4.5.0

BlockUuid::for()

Shorthand to create instance by passing either UUID or model

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

Parameters

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

Return type

Kirby\Uuid\BlockUuid|null

Parent class

Kirby\Uuid\BlockUuid inherited from Kirby\Uuid\Uuid