Skip to content

Kirby 5.0.4

$content->setParent()

Set the parent model

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

Parameters

Name Type Default
$parentrequired Kirby\Cms\ModelWithContent no default value

Return type

Kirby\Content\Content

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

Parent class

Kirby\Content\Content