Skip to content

Kirby 4.4.1

$structureobject->toArray()

Converts all fields in the object to a plain associative array. The id is injected from the parent into the array to make sure it's always present and not overloaded by the content.

$structureobject->toArray(): array

Return type

array

Parent class

Kirby\Cms\StructureObject