Skip to content

Kirby 5.0.4

$snippet->parent()

Returns the parent snippet if it exists

$snippet->parent(): Kirby\Template\Snippet|null

Return types

Kirby\Template\Snippetornull

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