Skip to content

Kirby 5.5.0

$snippet->hasSlots()

Returns whether the snippet has any closed slots

$snippet->hasSlots(): bool

Return type

bool

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

Parent class

Kirby\Template\Snippet