Skip to content

Kirby 4.3.0

$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