Skip to content

Kirby 3.9.8

$structureobject->clone()

Creates an instance with the same initial properties.

$structureobject->clone(array $props = [ ]): Kirby\Cms\StructureObject

Parameters

Name Type Default
$props array [ ]

Return type

Kirby\Cms\StructureObject

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

Parent class

Kirby\Cms\StructureObject inherited from Kirby\Cms\Model