$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
This method modifies the existing $content
object it is applied to and returns it again.