Skip to content

Kirby 3.9.8

$content->setParent()

Set the parent model

$content->setParent(Kirby\Cms\Model $parent): Kirby\Cms\Content

Parameters

Name Type Default
$parent * Kirby\Cms\Model

Return type

Kirby\Cms\Content

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

Parent class

Kirby\Cms\Content