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