Skip to content

Kirby 4.5.0

$content->setParent()

Set the parent model

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

Parameters

Name Type Default
$parent * Kirby\Cms\ModelWithContent

Return type

Kirby\Content\Content

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

Parent class

Kirby\Content\Content