Skip to content

Kirby 6.0.0

Block::factory()

Constructs a block object with registering blocks models

Block::factory(array $params): Block

Parameters

Name Type Default
$paramsrequired array<string, mixed> no default value

Return type

Kirby\Cms\Block

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the block type is missing

Parent class

Kirby\Cms\Block