Skip to content

Kirby 3.9.8

$snippet->close()

Closes the snippet and catches the default slot if no slots have been defined in between opening and closing.

$snippet->close(): Kirby\Template\Snippet

Return type

Kirby\Template\Snippet

This method does not modify the existing $snippet object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Template\Snippet