Skip to content

Kirby 5.0.1

Blueprint::factory()

Create a new blueprint for a model

Blueprint::factory(string $name, string|null $fallback, Kirby\Cms\ModelWithContent $model): Kirby\Cms\Blueprint|null

Parameters

Name Type Default
$namerequired string no default value
$fallback stringornull no default value
$modelrequired Kirby\Cms\ModelWithContent no default value

Return types

Kirby\Cms\Blueprintornull

Parent class

Kirby\Cms\Blueprint