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
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the block type is missing |