Skip to content

Kirby 6.0.0

$layouts->toArray()

Convert the items to an array

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

Parameters

Name Type Default
$map Closureornull null

Return type

array

Parent class

Kirby\Cms\Layouts inherited from Kirby\Cms\Items