Skip to content

Kirby 6.0.0

$blocks->toArray()

Convert the items to an array

$blocks->toArray(Closure|null $map = null): array

Parameters

Name Type Default
$map Closureornull null

Return type

array

Parent class

Kirby\Cms\Blocks inherited from Kirby\Cms\Items