Skip to content

Kirby 3.5.7.1

new StructureObject()

Creates a new StructureObject with the given props

new StructureObject(array $props)

Parameters

Name Type Default
$props * array

For the $props parameter, you pass an array with the following data, which will be used to set up the Kirby\Cms\StructureObject object:

Name Type Description
content array Sets the Content object with the given parent
id * string Sets the id of the object.
parent Kirby\Cms\Model Sets the parent Model
structure Kirby\Cms\Structure Sets the parent Structure collection

Parent class

Kirby\Cms\StructureObject