Skip to content

Kirby 5.2.0

$content->toArray()

Returns the raw data array

Alias for Kirby\Content\Content::data()

$content->toArray(): array

Return type

array

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

Parent class

Kirby\Content\Content