Skip to content

Kirby 5.4.0

$content->parent()

Returns the parent Site, Page, File or User object

$content->parent(): Kirby\Cms\ModelWithContent|null

Return types

Kirby\Cms\ModelWithContentornull

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

Parent class

Kirby\Content\Content