Skip to content

Kirby 5.2.1

$slot->__toString()

Renders the slot content or an empty string if the slot is empty.

$slot->__toString(): string

Return type

string

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

Parent class

Kirby\Template\Slot