Skip to content

Kirby 5.1.1

$block->toHtml()

Converts the block to HTML

$block->toHtml(): string

Return type

string

This method modifies the existing $block object it is applied to and returns it again.

Parent class

Kirby\Cms\Block