Skip to content

Kirby 4.5.0

$file->page()

Returns the parent Page object

$file->page(): Kirby\Cms\Page|null

Return type

Kirby\Cms\Page|null

Parent class

Kirby\Cms\File

Example

echo 'Document of: ' . $file->page()->title();