Skip to content

Kirby 5.0.4

$modelWithContent->toArray()

Convert the model to a simple array

$modelWithContent->toArray(): array

Return type

array

This method modifies the existing $modelwithcontent object it is applied to and returns it again.

Parent class

Kirby\Cms\ModelWithContent