$snippet->parent()
Returns the parent snippet if it exists
$snippet->parent(): Kirby\Template\Snippet|null
Return types
Kirby\Template\Snippet
ornull
This method does not modify the existing $snippet
object but returns a new object with the changes applied. Learn more →