Skip to content

Kirby 3.6.6

$plugin->setSite()

Setter for the parent site object

$plugin->setSite(Kirby\Cms\Site $site = null): Kirby\Cms\Plugin

Parameters

Name Type Default
$site Kirby\Cms\Site null

Return type

Kirby\Cms\Plugin

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

Parent class

Kirby\Cms\Plugin inherited from Kirby\Cms\Model