Skip to content

Kirby 5.2.0

$ingredients->toArray()

Returns all ingredients as plain array

$ingredients->toArray(): array

Return type

array

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

Parent class

Kirby\Cms\Ingredients