Skip to content

Kirby 5.0.1

Block::model()

Creates an object from model if it has been registered

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

Parameters

Name Type Default
$namerequired string no default value
$props array [ ]

Return type

Kirby\Cms\Block

Parent class

Kirby\Cms\Block