Skip to content

Kirby 4.4.1

$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();