Skip to content

$file->setSite()

Setter for the parent site object

$file->setSite(Kirby\Cms\Site $site = null): Kirby\Cms\Model

Parameters

Name Type Default
$site Kirby\Cms\Site null

Return type

Kirby\Cms\Model

This method does not modify the existing $file object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\File inherited from Kirby\Cms\Model