Skip to content

Kirby 4.5.0

$file->site()

Returns the parent Site object

$file->site(): Kirby\Cms\Site

Return type

Kirby\Cms\Site

Parent class

Kirby\Cms\File

Example

$site = $file->site();