Skip to content

Kirby 4.5.0

$block->toField()

Converts the block to html first and then places that inside a field object. This can be used further with all available field methods

$block->toField(): Kirby\Content\Field

Return type

Kirby\Content\Field

Parent class

Kirby\Cms\Block