Skip to content

Kirby 6.0.0

Block::model()

Creates an object from model if it has been registered

Block::model(string $name, array $props = []): Block

Parameters

Name Type Default
$namerequired string no default value
$props array<string, mixed> []

Return type

Kirby\Cms\Block

Parent class

Kirby\Cms\Block